-
Notifications
You must be signed in to change notification settings - Fork 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
Redundant detection boxes without NMS #236
Comments
I also have the same problem. Especially set the confidence threshold to a small value, as mentioned in #136 , 0.05. Is there any way to solve it? |
Thanks for your interest! Do you use the finetuned model to perform predictions? Could you please try to train the model for more epochs? Thanks! |
@jameslahm Many thanks for your comments. I trained the model on my dataset starting from your pretrained weights. No matter how I change epochs from 900~2000 and other training parameters, all models keep giving redundant detection boxes. I also submit a issue here. Now the problem is solved by adding an NMS as prediction post-process... |
@wuhanshuo Thanks! What if you set a higher confidence threshold than that of the redundant prediction with the lower score? |
But I think it is hard to set an appropriate confidence threshold... After all it is unpredictable... |
@jameslahm Yes I believe a higher confidence will remove redundant boxes significantly. However I will not consider it as the first option, since in my task a higher confidence may miss some small objects... I agree with @lryan599, it is unpredictable and may harm the generalization ability of the model in difference scenes... Also it is hard to find a perfect confidence. @lryan599 I would suggest the solution here. In my task, adding an NMS has no significant impact on runtime. |
@wuhanshuo Thanks! Would you mind sharing your example, including the checkpoint and the detected image with us? We will also try to find other solutions. |
@wuhanshuo Thank you for your suggestion! I will give it a try. @jameslahm Maybe you can add NMS as an optional argument? After all, in a single prediction, there are only a few duplicate detection boxes, so the NMS will not take too much time, I think. This is for engineering considerations. |
@lryan599 Thanks for your suggestion! That is a good solution and we will consider this. |
@jameslahm Due to project confidentiality reasons, I cannot post my data here. I have sent an email to your gmail address with my checkpoint and an example image. Many thanks for your reply. |
@wuhanshuo Thanks a lot! We have received your email. |
My code:
Outputs in frame 266:
The last two boxes are almost the same one but detected twice. Why does YOLOv10 have this issue by replacing NMS with consistent dual assignments?
The text was updated successfully, but these errors were encountered: