-
Notifications
You must be signed in to change notification settings - Fork 94
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
Invalid dists #9
Comments
@nrpr93 I've experienced the same issue regarding getting NaN dists, I solved mine by reducing the clusters 1 or 3 instead of 5. |
Now it´s work with one cluster, but it just run two iterations, and the final anchor doesn´t seem very right. I assume that´s because the number of iterations. |
Are you testing with the voc data? |
No, I´m testing with my own data. |
Maybe there are some issues with your own data, you could try to do the voc example in the readme and see if you can reproduce the same results. Could you tell me about your data and how it is formatted? |
The format of my data it´s pretty simple I have 15 classes, and I use the same tpe of annotation that yolo wants: , my 'width' and 'height' it´s always the same for all the images, just the 'x' and 'y' change in all. 0 0.53 0.35 0.0625 0.08333333333333333 |
How much data do you have for each class ? |
Is that all the bounding boxes you have? @nrpr93 Because that is probably your issue. I've used ~60k frames with ~180k detections to find my anchor boxes, so I believe the program can't generate anchor boxes if you only have one detection per class, you need to collect a bigger dataset if that is the case. |
Of course I don´t have just one detection for class, I have 18k for each class. I just show a example of a file with 15 detetion. |
Okay sorry, I don't know the issue then, maybe @Jumabek can help? |
Hi @nrpr93 , could you upload your annotation file here (One would be sufficient). I want to test your format (I suspect it has to do some trailing white spaces or something) if you cannot update then please email jumabek4044@gmail.com |
Sorry I just read that you guyz are getting NaN. @TheMikeyR, @nrpr93 can you send me your annotations. No need for the images, just annotation. I want to fix the code using your annotations if you do not mind. |
I believe the problem it´s because my width and height in all objects are the same. So that´s a division calulation problem. Here´s one example of my annotation: |
@Jumabek don't worry I believe my error is due to the cluster size was too high compared to the size of my annotations ~100x100 so I couldn't go up to 5 in clusters, but I had no issues using voc data, if you still want my data just give me a thumps up and I will send it 😄 |
@nrpr93 now I see it. Since in your case you have same shape but different class objects, you should choose only one cluster. if the code fails for some other reason here I calculate the centroid for you:
|
Hi,
I get NaN dists for some reason. The scripts can´t read all the annotations and he can get all the information in there, but we can´t give me the dists correctly.
Can someone help me with this?
Regards,
NR
The text was updated successfully, but these errors were encountered: