tanluren / yolov3-channel-and-layer-pruning

yolov3 yolov4 channel and layer pruning, Knowledge Distillation 层剪枝,通道剪枝,知识蒸馏
Apache License 2.0
1.5k stars 446 forks source link

AssertionError: No labels found. Recommend correcting image and label paths. #13

Open GraceKafuu opened 4 years ago

GraceKafuu commented 4 years ago

loaded weights from weights/yolov3.weights Reading labels: 100%|████████████████████████| 20/20 [00:00<00:00, 78251.94it/s] Traceback (most recent call last): File "train.py", line 497, in train() # train normally File "train.py", line 239, in train cache_images=False if opt.prebias else opt.cache_images) File "/home/nvidia/yolov3-channel-and-layer-pruning-master/utils/datasets.py", line 373, in init assert nf > 0, 'No labels found. Recommend correcting image and label paths.' AssertionError: No labels found. Recommend correcting image and label paths.

这个路径该怎么设置,我的数据没有问题,之前用darknet跑过,现在是放在本项目的路径下报这个错,放在darknet那边也是这样。 大神,下一步怎么处理?

GraceKafuu commented 4 years ago

没事了,仔细看了converter.py,现在跑起来了 >_<

tanluren commented 4 years ago

嗯嗯数据格式标准可以看这里https://github.com/ultralytics/yolov3/wiki/Train-Custom-Data,images和labels路径注意要刚好能替换

95cdy commented 4 years ago

没事了,仔细看了converter.py,现在跑起来了 >_<

请问怎么解决的这个问题