diff --git a/deepface/DeepFace.py b/deepface/DeepFace.py index b192ce0..6eb31ac 100644 --- a/deepface/DeepFace.py +++ b/deepface/DeepFace.py @@ -96,8 +96,8 @@ def verify( OpenFace, DeepFace, DeepID, Dlib, ArcFace, SFace and GhostFaceNet (default is VGG-Face). detector_backend (string): face detector backend. Options: 'opencv', 'retinaface', - 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8', 'yolov11n', 'yolov11s', 'yolov11m', 'centerface' or 'skip' - (default is opencv). + 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8', 'yolov11n', 'yolov11s', 'yolov11m', + 'centerface' or 'skip' (default is opencv). distance_metric (string): Metric for measuring similarity. Options: 'cosine', 'euclidean', 'euclidean_l2' (default is cosine). @@ -388,7 +388,8 @@ def represent( include information for each detected face. model_name (str): Model for face recognition. Options: VGG-Face, Facenet, Facenet512, - OpenFace, DeepFace, DeepID, Dlib, ArcFace, SFace and GhostFaceNet (default is VGG-Face.). + OpenFace, DeepFace, DeepID, Dlib, ArcFace, SFace and GhostFaceNet + (default is VGG-Face.). enforce_detection (boolean): If no face is detected in an image, raise an exception. Default is True. Set to False to avoid the exception for low-resolution images diff --git a/deepface/models/face_detection/Yolo.py b/deepface/models/face_detection/Yolo.py index ee756c5..233f088 100644 --- a/deepface/models/face_detection/Yolo.py +++ b/deepface/models/face_detection/Yolo.py @@ -95,7 +95,8 @@ class YoloDetectorClient(Detector): right_eye = None left_eye = None - # yolo-facev8 is detecting eyes through keypoints, while for v11 keypoints are always None + # yolo-facev8 is detecting eyes through keypoints, + # while for v11 keypoints are always None if result.keypoints is not None: # right_eye_conf = result.keypoints.conf[0][0] # left_eye_conf = result.keypoints.conf[0][1] diff --git a/deepface/modules/modeling.py b/deepface/modules/modeling.py index e12804e..176d9e7 100644 --- a/deepface/modules/modeling.py +++ b/deepface/modules/modeling.py @@ -38,8 +38,8 @@ def build_model(task: str, model_name: str) -> Any: - VGG-Face, Facenet, Facenet512, OpenFace, DeepFace, DeepID, Dlib, ArcFace, SFace and GhostFaceNet for face recognition - Age, Gender, Emotion, Race for facial attributes - - opencv, mtcnn, ssd, dlib, retinaface, mediapipe, yolov8, 'yolov11n', 'yolov11s', 'yolov11m', yunet, - fastmtcnn or centerface for face detectors + - opencv, mtcnn, ssd, dlib, retinaface, mediapipe, yolov8, 'yolov11n', + 'yolov11s', 'yolov11m', yunet, fastmtcnn or centerface for face detectors - Fasnet for spoofing Returns: built model class diff --git a/deepface/modules/representation.py b/deepface/modules/representation.py index c1e2a5f..bec0b1a 100644 --- a/deepface/modules/representation.py +++ b/deepface/modules/representation.py @@ -36,7 +36,8 @@ def represent( Default is True. Set to False to avoid the exception for low-resolution images. detector_backend (string): face detector backend. Options: 'opencv', 'retinaface', - 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8', 'yolov11n', 'yolov11s', 'yolov11m', 'centerface' or 'skip'. + 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8', 'yolov11n', 'yolov11s', + 'yolov11m', 'centerface' or 'skip'. align (boolean): Perform alignment based on the eye positions.