Closed tyasnk closed 3 days ago
I use the Mediapipe backend as detector. I look at the source https://github.com/serengil/deepface/blob/master/deepface/models/face_detection/MediaPipe.py#L35 it hardcoded the min_detection_confidence param and also there is no model_selection param there.
min_detection_confidence
model_selection
It would be good if we can config them by using environment variable like this
face_detection = mp_face_detection.FaceDetection( min_detection_confidence=os.getenv("MEDIAPIPE_MIN_DETECTION_CONFIDENCE", 0.7), model_selection=os.getenv("MEDIAPIPE_MODEL_SELECTION", 0) )
No response
Fair enough
@tyasnk do you mind to create a PR for this? you already written the most of the code.
Description
I use the Mediapipe backend as detector. I look at the source https://github.com/serengil/deepface/blob/master/deepface/models/face_detection/MediaPipe.py#L35 it hardcoded the
min_detection_confidence
param and also there is nomodel_selection
param there.It would be good if we can config them by using environment variable like this
Additional Info
No response