Open alfamousts opened 6 years ago
have the same problem.
I change the classes=2
, and the last filters=35
which is (2+5)*5, and in the labels.txt I only have
raccoon
kangaroo
I use --labels ../mylabels_path
to train my own pictures.
But I got this error:
AssertionError: lables.txt and ../datasets/train/yolo.cfg indicate inconsistent class numbers.
I don't understand, did I miss something?
Found the same error, using the https://github.com/thtrieu/darkflow code
Traceback (most recent call last):
File "flow", line 6, in
Changing the classes in cfg file to match the number of classes in the label.txt fixed the issues
Why does that solve it though? What does the number of classes in the cfg need to match the labels.txt file?
Check this out.
The problem still persists with weights and models downloaded from https://pjreddie.com/darknet/yolo/
please copy the cfg file, give it a new name, edit the classes, and then use the new cfg file. Sometimes when you define the same name as the .cfg file, I guess the model does not check on the edited file, it checks the original one, causing the mismatch.
Hello everyone, I've got problem when using weights that i've been trained. When training, i am using code from darknet made by alexey . I used the darkflow code to load this weights but there was some errors like this.
Anyone can help me ?