|
17 | 17 |
|
18 | 18 | # package dependencies
|
19 | 19 | from deepface.commons import package_utils, folder_utils
|
20 |
| -from deepface.commons.logger import Logger |
| 20 | +from deepface.commons import logger as log |
21 | 21 | from deepface.modules import (
|
22 | 22 | modeling,
|
23 | 23 | representation,
|
|
29 | 29 | )
|
30 | 30 | from deepface import __version__
|
31 | 31 |
|
32 |
| -logger = Logger(module="DeepFace") |
| 32 | +logger = log.get_singletonish_logger() |
33 | 33 |
|
34 | 34 | # -----------------------------------
|
35 | 35 | # configurations for dependencies
|
@@ -88,7 +88,7 @@ def verify(
|
88 | 88 | OpenFace, DeepFace, DeepID, Dlib, ArcFace, SFace and GhostFaceNet (default is VGG-Face).
|
89 | 89 |
|
90 | 90 | detector_backend (string): face detector backend. Options: 'opencv', 'retinaface',
|
91 |
| - 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' (default is opencv). |
| 91 | + 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' or 'skip' (default is opencv). |
92 | 92 |
|
93 | 93 | distance_metric (string): Metric for measuring similarity. Options: 'cosine',
|
94 | 94 | 'euclidean', 'euclidean_l2' (default is cosine).
|
@@ -168,7 +168,7 @@ def analyze(
|
168 | 168 | Set to False to avoid the exception for low-resolution images (default is True).
|
169 | 169 |
|
170 | 170 | detector_backend (string): face detector backend. Options: 'opencv', 'retinaface',
|
171 |
| - 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' (default is opencv). |
| 171 | + 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' or 'skip' (default is opencv). |
172 | 172 |
|
173 | 173 | distance_metric (string): Metric for measuring similarity. Options: 'cosine',
|
174 | 174 | 'euclidean', 'euclidean_l2' (default is cosine).
|
@@ -272,7 +272,7 @@ def find(
|
272 | 272 | Set to False to avoid the exception for low-resolution images (default is True).
|
273 | 273 |
|
274 | 274 | detector_backend (string): face detector backend. Options: 'opencv', 'retinaface',
|
275 |
| - 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' (default is opencv). |
| 275 | + 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' or 'skip' (default is opencv). |
276 | 276 |
|
277 | 277 | align (boolean): Perform alignment based on the eye positions (default is True).
|
278 | 278 |
|
@@ -348,7 +348,7 @@ def represent(
|
348 | 348 | (default is True).
|
349 | 349 |
|
350 | 350 | detector_backend (string): face detector backend. Options: 'opencv', 'retinaface',
|
351 |
| - 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' (default is opencv). |
| 351 | + 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' or 'skip' (default is opencv). |
352 | 352 |
|
353 | 353 | align (boolean): Perform alignment based on the eye positions (default is True).
|
354 | 354 |
|
@@ -406,7 +406,7 @@ def stream(
|
406 | 406 | OpenFace, DeepFace, DeepID, Dlib, ArcFace, SFace and GhostFaceNet (default is VGG-Face).
|
407 | 407 |
|
408 | 408 | detector_backend (string): face detector backend. Options: 'opencv', 'retinaface',
|
409 |
| - 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' (default is opencv). |
| 409 | + 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' or 'skip' (default is opencv). |
410 | 410 |
|
411 | 411 | distance_metric (string): Metric for measuring similarity. Options: 'cosine',
|
412 | 412 | 'euclidean', 'euclidean_l2' (default is cosine).
|
@@ -454,7 +454,7 @@ def extract_faces(
|
454 | 454 | as a string, numpy array (BGR), or base64 encoded images.
|
455 | 455 |
|
456 | 456 | detector_backend (string): face detector backend. Options: 'opencv', 'retinaface',
|
457 |
| - 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' (default is opencv). |
| 457 | + 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' or 'skip' (default is opencv). |
458 | 458 |
|
459 | 459 | enforce_detection (boolean): If no face is detected in an image, raise an exception.
|
460 | 460 | Set to False to avoid the exception for low-resolution images (default is True).
|
@@ -520,7 +520,7 @@ def detectFace(
|
520 | 520 | added to resize the image (default is (224, 224)).
|
521 | 521 |
|
522 | 522 | detector_backend (string): face detector backend. Options: 'opencv', 'retinaface',
|
523 |
| - 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' (default is opencv). |
| 523 | + 'mtcnn', 'ssd', 'dlib', 'mediapipe', 'yolov8' or 'skip' (default is opencv). |
524 | 524 |
|
525 | 525 | enforce_detection (boolean): If no face is detected in an image, raise an exception.
|
526 | 526 | Set to False to avoid the exception for low-resolution images (default is True).
|
|
0 commit comments