Update CenterFace threshold

the original repo use a threshold of 0.35 that is appropriate based on my tests. 0.8 is very large and results in many false negatives.
This commit is contained in:
Mehran Ghandehari 2024-12-19 16:21:09 -05:00 committed by GitHub
parent 4fe4ba289e
commit 967beea816
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ class CenterFaceClient(Detector):
"""
resp = []
threshold = float(os.getenv("CENTERFACE_THRESHOLD", "0.80"))
threshold = float(os.getenv("CENTERFACE_THRESHOLD", "0.35"))
# BUG: model causes problematic results from 2nd call if it is not flushed
# detections, landmarks = self.model.forward(