WongKinYiu / PyTorch_YOLOv4

PyTorch implementation of YOLOv4
1.88k stars 587 forks source link

No labels found #376

Open nanazhutan opened 2 years ago

nanazhutan commented 2 years ago

Traceback (most recent call last): File "train.py", line 537, in train(hyp, opt, device, tb_writer, wandb) File "train.py", line 183, in train rank=rank, world_size=opt.world_size, workers=opt.workers) File "/content/PyTorch_YOLOv4/utils/datasets.py", line 72, in create_dataloader rank=rank) File "/content/PyTorch_YOLOv4/utils/datasets.py", line 497, in init assert not augment, '%s. Can not train without labels.' % s AssertionError: WARNING: No labels found in /content/drive/MyDrive/stair/train/.

here's my folder with images and their label image

how to solve this?

nanazhutan commented 2 years ago

@WongKinYiu please help

WongKinYiu commented 2 years ago

Do you provide train.txt which contains image paths in your data.yaml?

MheadHero commented 2 years ago

Do you provide train.txt which contains image paths in your data.yaml? image but still cannot detect my label, why is this happened? @WongKinYiu

saesaria commented 2 years ago

try this https://github.com/ultralytics/yolov5/pull/1414