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

Why the vis_thresh is 0.3? Should we change it according to own datasest? #793

Open
sisrfeng opened this issue Aug 13, 2020 · 6 comments
Open

Comments

@sisrfeng
Copy link

sisrfeng commented Aug 13, 2020

In my dataset, the best vis_thresh may be 0.2.
Thx!

@ShawnNew
Copy link

Hi, I met a similiar problem. I trained a model with my own dataset, and found that the final score is low so that I have to set a small vis_thresh.
Anyone knows why?

@cao-nv
Copy link

cao-nv commented Oct 1, 2020

That is common practice in deep learning?
A proper threshold should separate true and false prediction well.

@sisrfeng
Copy link
Author

A proper threshold should separate true and false prediction well.
If the best vis_thresh is 0.2, which can separate true and false prediction well, does such a low confidence mean that the model is not well trained?

@cao-nv
Copy link

cao-nv commented Oct 26, 2020

A proper threshold should separate true and false predictions well.
If the best vis_thresh is 0.2, which can separate true and false prediction well, does such a low confidence mean that the model is not well trained?

No, the only target is an model that can distinguish between classes. If the threshold is 0.2 is ok, you can use Softmax with Temperature to scale the threshold to a higher/lower value easily without affecting the final accuracy.

@sisrfeng
Copy link
Author

use Softmax with Temperature to scale the threshold to a higher/lower value easily without affecting the final accuracy

https://stackoverflow.com/a/63471046/13335630
a) Sample 'hard'softmax probs : (0.01,0.01,0.98)
b) Sample 'soft' softmax probs : (0.2,0.2,0.6)

@cao-nv
Copy link

cao-nv commented Oct 26, 2020

use Softmax with Temperature to scale the threshold to a higher/lower value easily without affecting the final accuracy

https://stackoverflow.com/a/63471046/13335630
a) Sample 'hard'softmax probs : (0.01,0.01,0.98)
b) Sample 'soft' softmax probs : (0.2,0.2,0.6)

your examples is for the case T>1, T < 1 will increase the highest score and decrease the others as well

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

3 participants