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

请问这个数据加载部分应该怎么解决? #124

Open jingzhishouhou opened 3 years ago

jingzhishouhou commented 3 years ago

File "train.py", line 542, in train() # train normally File "train.py", line 261, in train cache_images=False if opt.prebias else opt.cache_images) File "C:\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.

Jacksonwangshuo commented 3 years ago

你好,我也有这个问题,请问您解决了么?

syswyl commented 3 years ago

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

你这不是没加载到路径吗,注意建材train.txt ,test.txt 要更换为自己的路径