当前位置:网站首页>When solving yolov5 training: "AssertionError: train: No labels in VOCData/dataSet_path/train.cache. Can not train"

When solving yolov5 training: "AssertionError: train: No labels in VOCData/dataSet_path/train.cache. Can not train"

2022-08-01 22:38:00 Bobo loves to learn

When I used the data set I marked to train the yolov5 model, everything felt normal, but I couldn't find the problem of this bug. I searched all the csdn, basically it said that the folder corresponds to the problem, butIt didn't work. In the end, the reason was caused by my own carelessness. I deeply reflect on it here.

Ok, without further ado, here's the solution:
– Check the number of categories and class names in the "data/myvoc.yaml" configuration file. In general, the file path is not wrong, it's easyIgnore the category information below.
insert image description here
–!Note: The number of categories and category names here must be in one-to-one correspondence with the file you converted to yolo format earlier.
Insert image description here
– As long as there is a one-to-one correspondence, the training will basically notIf you report an error, you will report an error and send me a private message, and I will solve it for you!

原网站

版权声明
本文为[Bobo loves to learn]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/213/202208012231515654.html