yzqxy / Yolov8_obb_Prune_Track

GNU General Public License v3.0
185 stars 15 forks source link

train.cache文件中没有标签数据 #26

Closed kbjhouse closed 1 year ago

kbjhouse commented 1 year ago

Traceback (most recent call last): File "/root/autodl-tmp/Body/Yolov8_obb/train.py", line 648, in main(opt) File "/root/autodl-tmp/Body/Yolov8_obb/train.py", line 545, in main train(opt.hyp, opt, device, callbacks) File "/root/autodl-tmp/Body/Yolov8_obb/train.py", line 222, in train train_loader, dataset = create_dataloader(train_path, imgsz, batch_size // WORLD_SIZE, gs, names, single_cls, File "/root/autodl-tmp/Body/Yolov8_obb/utils/datasets.py", line 101, in create_dataloader dataset = LoadImagesAndLabels(path, names, imgsz, batch_size, File "/root/autodl-tmp/Body/Yolov8_obb/utils/datasets.py", line 442, in init assert nf > 0 or not augment, f'{prefix}No labels in {cache_path}. Can not train without labels. See {HELP_URL}' AssertionError: train: No labels in /root/autodl-tmp/Body/datasets/train.cache. Can not train without labels. See https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data