Skip to content

Commit

Permalink
Update CenterFace threshold
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mehran66 authored Dec 19, 2024
1 parent 4fe4ba2 commit 967beea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepface/models/face_detection/CenterFace.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def detect_faces(self, img: np.ndarray) -> List["FacialAreaRegion"]:
"""
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(
Expand Down

0 comments on commit 967beea

Please sign in to comment.