mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
Comment out broken models.
This commit is contained in:
parent
205eb0e23d
commit
0510613004
@ -2,8 +2,11 @@ from deepface.detectors import FaceDetector
|
|||||||
|
|
||||||
# Models names and paths
|
# Models names and paths
|
||||||
PATHS = {
|
PATHS = {
|
||||||
"yolov8-lite-t": "/.deepface/weights/yolov8-lite-t.pt",
|
# The commented models are broken, their weights are available
|
||||||
"yolov8-lite-s": "/.deepface/weights/yolov8-lite-s.pt",
|
# but the models themselves are not working
|
||||||
|
# See https://github.com/derronqi/yolov8-face/issues/3 for details
|
||||||
|
# "yolov8-lite-t": "/.deepface/weights/yolov8-lite-t.pt",
|
||||||
|
# "yolov8-lite-s": "/.deepface/weights/yolov8-lite-s.pt",
|
||||||
"yolov8n": "/.deepface/weights/yolov8n-face.pt",
|
"yolov8n": "/.deepface/weights/yolov8n-face.pt",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -12,8 +15,11 @@ BASE_URL = "https://drive.google.com/uc?id="
|
|||||||
|
|
||||||
# Models' Google Drive IDs
|
# Models' Google Drive IDs
|
||||||
IDS = {
|
IDS = {
|
||||||
"yolov8-lite-t": "1vFMGW8xtRVo9bfC9yJVWWGY7vVxbLh94",
|
# The commented models are broken, their weights are available
|
||||||
"yolov8-lite-s": "1ckpBT8KfwURTvTm5pa-cMC89A0V5jbaq",
|
# but the models themselves are not working
|
||||||
|
# See https://github.com/derronqi/yolov8-face/issues/3 for details
|
||||||
|
# "yolov8-lite-t": "1vFMGW8xtRVo9bfC9yJVWWGY7vVxbLh94",
|
||||||
|
# "yolov8-lite-s": "1ckpBT8KfwURTvTm5pa-cMC89A0V5jbaq",
|
||||||
"yolov8n": "1qcr9DbgsX3ryrz2uU8w4Xm3cOrRywXqb",
|
"yolov8n": "1qcr9DbgsX3ryrz2uU8w4Xm3cOrRywXqb",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,7 +55,8 @@ def detect_face(face_detector, img, align=False):
|
|||||||
resp = []
|
resp = []
|
||||||
|
|
||||||
# Detect faces
|
# Detect faces
|
||||||
results = face_detector.predict(img, verbose=False, show=False, conf=0.25)[0]
|
results = face_detector.predict(
|
||||||
|
img, verbose=False, show=False, conf=0.25)[0]
|
||||||
|
|
||||||
# For each face, extract the bounding box, the landmarks and confidence
|
# For each face, extract the bounding box, the landmarks and confidence
|
||||||
for result in results:
|
for result in results:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user