question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, Could you please provide the threshold used in $INSIGHTFACE/src/eval/verification.py (The one that you used in your paper for test)

Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

3reactions
ltkhangcommented, Jul 29, 2020

Why it is not fixed? When testing a data set, shouldn’t it be a fixed (Learned hyperparameter getting from the training)

Of course, the threshold is not fixed. For example you have MS1M dataset, there are 2 ways to find the threshold

  1. You train all of the things and find a threshold on the train-set itself in a statistical way.
  2. you split you set into train and val set, then apply a statistical method on val-set to find the best threshold. Finally, you can apply this threshold value on public test set such as LFW, Megaface, CFP, etc.
1reaction
ltkhangcommented, Aug 12, 2020

Actually in this line https://github.com/deepinsight/insightface/blob/master/recognition/eval/verification.py#L172 the author try to find the best accuracy by grid searching threshold value between 0 and 4 with 0.01 diff point. So every best accuracy obtained at a specific dataset is possibly at different thresholds. If i’m not mistaken at LFW the best thresholds is around 1.4 you can try it yourself at different dataset. Hope this can help @orlevit

I noticed this but it seems to be very “tricky”.

I joined a contest, that I had to upload the inference code google colab with verification method and the fixed threshold value for contest holders. then they will apply to their test set and announce the result later.

In this case, how can I find my best threshold? I applied my inference model on multiple benchmark datasets and use avg value of threshold values, after that, I applied this avg threshold to re-verify on the above benchmark datasets, luckily the result still achieved SOTA. Finally, I decided to use avg threshold to submit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Threshold - Target
Shop Target for a wide assortment of Threshold. Choose from Same Day Delivery, Drive Up or Order Pickup. Free standard shipping with $35...
Read more >
Threshold Definition & Meaning - Merriam-Webster
The meaning of THRESHOLD is the plank, stone, or piece of timber that lies under a door : sill. How to use threshold...
Read more >
Threshold
All the latest official news and information about the British rock band Threshold.
Read more >
Threshold Definition & Meaning - Dictionary.com
threshold · the sill of a doorway. · the entrance to a house or building. · any place or point of entering or...
Read more >
threshold - Wiktionary
The point where one mentally or physically is vulnerable in response to provocation or to particular things in general. As in emotions, stress,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found