train: Scanning ‘datatrainlabels.cache’ images and labels… 0 found, 9 missing, 0 empty, 0 corrupted: 100%|█| 9/9 [0
Traceback (most recent call last):
File “C:YOLOenvsyolov7_customyolov7-customtrain.py”, line 616, in
train(hyp, opt, device, tb_writer)
File “C:YOLOenvsyolov7_customyolov7-customtrain.py”, line 245, in train
dataloader, dataset = create_dataloader(train_path, imgsz, batch_size, gs, opt,
File “C:YOLOenvsyolov7_customyolov7-customutilsdatasets.py”, line 69, in create_dataloader
dataset = LoadImagesAndLabels(path, imgsz, batch_size,
File “C:YOLOenvsyolov7_customyolov7-customutilsdatasets.py”, line 403, 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 datatrainlabels.cache. Can not train without labels. See https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data
we tried debugging it by recreating the labels for the corresponding images several times and on different image sets
Bhoomika Prabhu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.