ltralytics YOLOv8.2.77 🚀 Python-3.10.12 torch-2.3.1+cu121 CPU (Intel Xeon 2.20GHz)
engine/trainer: task=classify, mode=train, model=/content/ultralytics/ultralytics/cfg/models/v8/yolov8-cls-resnet50.yaml, data=/content/data.yaml, epochs=50, time=None, patience=100, batch=16, imgsz=640, save=True, save_period=-1, cache=False, device=None, workers=8, project=None, name=yolov8_resnetnet, exist_ok=False, pretrained=True, optimizer=auto, verbose=True, seed=0, deterministic=True, single_cls=False, rect=False, cos_lr=False, close_mosaic=10, resume=False, amp=True, fraction=1.0, profile=False, freeze=None, multi_scale=False, overlap_mask=True, mask_ratio=4, dropout=0.0, val=True, split=val, save_json=False, save_hybrid=False, conf=None, iou=0.7, max_det=300, half=False, dnn=False, plots=True, source=None, vid_stride=1, stream_buffer=False, visualize=False, augment=False, agnostic_nms=False, classes=None, retina_masks=False, embed=None, show=False, save_frames=False, save_txt=False, save_conf=False, save_crop=False, show_labels=True, show_conf=True, show_boxes=True, line_width=None, format=torchscript, keras=False, optimize=False, int8=False, dynamic=False, simplify=False, opset=None, workspace=4, nms=False, lr0=0.01, lrf=0.01, momentum=0.937, weight_decay=0.0005, warmup_epochs=3.0, warmup_momentum=0.8, warmup_bias_lr=0.1, box=7.5, cls=0.5, dfl=1.5, pose=12.0, kobj=1.0, label_smoothing=0.0, nbs=64, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, degrees=0.0, translate=0.1, scale=0.5, shear=0.0, perspective=0.0, flipud=0.0, fliplr=0.5, bgr=0.0, mosaic=1.0, mixup=0.0, copy_paste=0.0, auto_augment=randaugment, erasing=0.4, crop_fraction=1.0, cfg=None, tracker=botsort.yaml, save_dir=runs/classify/yolov8_resnetnet
Dataset not found ⚠️, missing path /content/data.yaml, attempting download…
Downloading https://ultralytics.com/assets/content/data.yaml.zip to ‘/content/data.yaml.zip’…
⚠️ Download failure, retrying 1/3 https://ultralytics.com/assets/content/data.yaml.zip…
Dataset download success ✅ (0.6s), saved to /content/data.yaml
NotADirectoryError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/ultralytics/engine/trainer.py in get_dataset(self)
523 if self.args.task == “classify”:
–> 524 data = check_cls_dataset(self.args.data)
525 elif self.args.data.split(“.”)[-1] in {“yaml”, “yml”} or self.args.task in {
7 frames
NotADirectoryError: [Errno 20] Not a directory: ‘/content/data.yaml/train’
The above exception was the direct cause of the following exception:
RuntimeError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/ultralytics/engine/trainer.py in get_dataset(self)
533 self.args.data = data[“yaml_file”] # for validating ‘yolo train data=url.zip’ usage
534 except Exception as e:
–> 535 raise RuntimeError(emojis(f”Dataset ‘{clean_url(self.args.data)}’ error ❌ {e}”)) from e
536 self.data = data
537 return data[“train”], data.get(“val”) or data.get(“test”)
RuntimeError: Dataset ‘/content/data.yaml’ error ❌ [Errno 20] Not a directory: ‘/content/data.yaml/train’
all paths are correct in the yaml file still facing the same issue again and again
Usman Shah syed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.