-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertionError: labels.txt and cfg/yolov2.cfg indicate inconsistent class numbers #790
Comments
I have the same issue. |
@keides2 hello, I create weights file using darknet,then AssertionError: labels.txt and cfg/yolov2.cfg indicate inconsistent class numbers,can i solve this question? |
@ss199302 Hi, Does the number of classes of objects described in labes.txt match with the number of classes described on line 244 of cfg / yolov2.cfg? |
if you are using dark flow then,
|
THANKS MAN!! This works for me. I spent like 2 hours to find this. |
I used my own dataset to train model in darkflow which contains 7 classes and i have mentioned those classes in labels.txt as well. I've changed the no. of filters to 60 and classes to 7 in .cfg file as well but even though I'm having an error. Which reads: Parsing ./cfg/yolo.cfg |
my cfg file is: [net] learning_rate=0.001 [convolutional] [maxpool] [convolutional] [maxpool] [convolutional] [maxpool] [convolutional] [maxpool] [convolutional] [maxpool] [convolutional] [maxpool] [convolutional] ########### [convolutional] [convolutional] [region] object_scale=5 absolute=1 my labels.txt file contains: but i'm getting error which reads: AssertionError: labels.txt and cfg/tiny-yolo-voc-7c.cfg indicate inconsistent class numbers |
Hi brother, |
This works for me. Thanks |
so i try to use the code from https://github.com/markjay4k/YOLO-series/blob/master/part2%20-%20Processing%20Images%20with%20YOLO%20and%20openCV.ipynb
and i try to change yolo.cfg to yolov2.cfg and then this error appears can someone please help me
The text was updated successfully, but these errors were encountered: