Setting the instance detection confidence score threshold #1604
-
When running inference, there must somewhere be a confidence score threshold for an instance to be detected right? Let's call it "instance-detection-confidence-score-threshold". Could someone point me to where this is and how this could be adjusted prior to model export? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @jkbhagatio, Yes! Sort-of... when loading the model, there is an argument named
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, |
Beta Was this translation helpful? Give feedback.
-
Thanks both! Is there a way to set this upon model export, e.g. when using |
Beta Was this translation helpful? Give feedback.
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 ofload_model
, check out #1603. You can also set thepeak_threshold
via the sleap-track CLI: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