Skip to content

Setting the instance detection confidence score threshold #1604

Answered by roomrys
jkbhagatio asked this question in Help!
Discussion options

You must be logged in to vote

Hi @jkbhagatio,

Yes! Sort-of... when loading the model, there is an argument named peak_threshold that allows setting a confidence threshold. However, this threshold is per point not per the entire instance. To read more on the API use of load_model, check out #1603. You can also set the peak_threshold via the sleap-track CLI:

  --peak_threshold PEAK_THRESHOLD
                        Minimum confidence map value to consider a peak as valid.

Furthermore, the peak thresholding is a parameter of inference not training, so it's more like a filter on the output of the model (not integral to the model itself).

Let us know if this helps!

Thanks,
Liezl

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@talmo
Comment options

Answer selected by talmo
Comment options

You must be logged in to vote
2 replies
@roomrys
Comment options

@jkbhagatio
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
3 participants