Skip to content

Commit

Permalink
Change yolov8n to yolov8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-Stragier committed Jun 23, 2023
1 parent 9792af4 commit 64f93d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ backends = [
'mtcnn',
'retinaface',
'mediapipe',
'yolov8n',
'yolov8',
]

#face verification
Expand Down
10 changes: 5 additions & 5 deletions deepface/DeepFace.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def verify(
This might be convenient for low resolution images.
detector_backend (string): set face detector backend to opencv, retinaface, mtcnn, ssd,
dlib, mediapipe or yolov8n.
dlib, mediapipe or yolov8.
align (boolean): alignment according to the eye positions.
Expand Down Expand Up @@ -251,7 +251,7 @@ def analyze(
resolution images.
detector_backend (string): set face detector backend to opencv, retinaface, mtcnn, ssd,
dlib, mediapipe or yolov8n.
dlib, mediapipe or yolov8.
align (boolean): alignment according to the eye positions.
Expand Down Expand Up @@ -429,7 +429,7 @@ def find(
resolution images.
detector_backend (string): set face detector backend to opencv, retinaface, mtcnn, ssd,
dlib, mediapipe or yolov8n.
dlib, mediapipe or yolov8.
align (boolean): alignment according to the eye positions.
Expand Down Expand Up @@ -641,7 +641,7 @@ def represent(
This might be convenient for low resolution images.
detector_backend (string): set face detector backend to opencv, retinaface, mtcnn, ssd,
dlib, mediapipe or yolov8n.
dlib, mediapipe or yolov8.
align (boolean): alignment according to the eye positions.
Expand Down Expand Up @@ -726,7 +726,7 @@ def stream(
model_name (string): VGG-Face, Facenet, Facenet512, OpenFace, DeepFace, DeepID, Dlib,
ArcFace, SFace
detector_backend (string): opencv, retinaface, mtcnn, ssd, dlib, mediapipe or yolov8n.
detector_backend (string): opencv, retinaface, mtcnn, ssd, dlib, mediapipe or yolov8.
distance_metric (string): cosine, euclidean, euclidean_l2
Expand Down
4 changes: 2 additions & 2 deletions deepface/detectors/FaceDetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def build_model(detector_backend):
"mtcnn": MtcnnWrapper.build_model,
"retinaface": RetinaFaceWrapper.build_model,
"mediapipe": MediapipeWrapper.build_model,
"yolov8n": YoloWrapper.build_model,
"yolov8": YoloWrapper.build_model,
}

if not "face_detector_obj" in globals():
Expand Down Expand Up @@ -66,7 +66,7 @@ def detect_faces(face_detector, detector_backend, img, align=True):
"mtcnn": MtcnnWrapper.detect_face,
"retinaface": RetinaFaceWrapper.detect_face,
"mediapipe": MediapipeWrapper.detect_face,
"yolov8n": YoloWrapper.detect_face,
"yolov8": YoloWrapper.detect_face,
}

detect_face_fn = backends.get(detector_backend)
Expand Down

0 comments on commit 64f93d1

Please sign in to comment.