Search code examples
pythondeep-learningcomputer-visionyoloyolov8

Yolo v8 Training on Nano dataset not working


I'm trying to train a yolov8 nano model with the following py script:

from ultralytics import YOLO
 
# Load the model.
model = YOLO('yolov8n.pt')
 
# Training.
results = model.train(
   data='pothole.yaml',
   imgsz=1280,
   epochs=10,
   batch=8,
   name='yolov8n_v8_50e'
)

However, I run into the following error about 5 minutes into running the script:

Retrying (Retry(total=233, connect=233, read=240, redirect=240, status=240)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x2a093e6d0>: Failed to resolve 'api.clear.ml' ([Errno 8] nodename nor servname provided, or not known)")': /auth.login

Any suggestions? I've already tried updating urllib3 and ultralytics...


Solution

  • Your error seems to be related to incorrect setup with ClearML. If you don't need it, just uninstall like this:

    pip uninstall clearml
    

    You can set it up again later, but you probably don't even need it.