Skip to content
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

Need for NMS #126

Open
prashant-dn opened this issue Dec 27, 2024 · 3 comments
Open

Need for NMS #126

prashant-dn opened this issue Dec 27, 2024 · 3 comments

Comments

@prashant-dn
Copy link

HI,
I realise that the model is based on DETR and uses the non-NMS approach. But after training my model and inferring at 0.3 detection threshold, I get multiple boxes.
image
But if I increase the threshold to 0.5, I do see fewer boxes but there are multiple boxes still left.
Increasing the threshold further only impacts other classes and I get overall lower detection boxes.

Am I missing something? What is the correct way to tackle this for such non-NMS based models?

@amirbakhtiary23
Copy link

amirbakhtiary23 commented Dec 30, 2024

No you are not missing anything. You just need to train more (if you have the enough data of course).
But that aside, you can do NMS too and since its only around 300 boxes it won't show any significant fps drop.

PS: Im not the author, just some random enthusiast

@prashant-dn
Copy link
Author

Hey Amir, I can confirm that I have sufficient data and also the losses do look saturated. So training further makes doesn't seem like an option.

Screenshot 2024-12-30 at 11 18 55 AM

No you are not missing anything. You just need to train more (if you have the enough data of course). But that aside, you can do NMS too and since its only around 300 boxes it won't show any significant fps drop.

PS: Im not the author, just some random enthusiast

@amirbakhtiary23
Copy link

Are you fine tuning or training from scratch? if not fine tuning, do that instead. Moreover, Just because the loss becomes saturated it doesnt mean the model have converged well enough. Maybe you need to a bit of hyper parameter tuning as well.
Also, I dont know how many steps have you trained your model . I can see an 80K on the graphs but I dont see the batch size nor the dataset size.
Provide as much information as possible so I can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants