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

Where can I tune the NMS threshold #52

Open
XsLangley opened this issue Nov 22, 2024 · 1 comment
Open

Where can I tune the NMS threshold #52

XsLangley opened this issue Nov 22, 2024 · 1 comment

Comments

@XsLangley
Copy link

Hi,

Many thanks for releasing such a great model for layout detection! It helps a lot!
However, I found that the local demo code only allows tuning the confidence, while the online demo supports tuning both the confidence and NMS IoU threshold. I would like to know how I can tune the NMS IoU in the sample code, just like what I can do in the online demo.
Thanks a lot.

@JulioZhao97
Copy link
Collaborator

Hello, thanks for you interest in our work!
You can refer to app.py in the online demo file and adjust NMS threshold like that:
https://huggingface.co/spaces/opendatalab/DocLayout-YOLO/blob/3f02d20af1765d58cb03604da21b66e21c521494/app.py#L40-L49

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