mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 20:15:21 +00:00
fix linter errors
This commit is contained in:
parent
fc09756cfc
commit
9bf9542273
@ -6,10 +6,8 @@ from deepface.commons import functions
|
|||||||
|
|
||||||
|
|
||||||
def build_model():
|
def build_model():
|
||||||
url = (
|
# pylint: disable=C0301
|
||||||
"https://github.com/opencv/opencv_zoo/raw/main/models/"
|
url = "https://github.com/opencv/opencv_zoo/raw/main/models/face_detection_yunet/face_detection_yunet_2023mar.onnx"
|
||||||
+ "face_detection_yunet/face_detection_yunet_2023mar.onnx"
|
|
||||||
)
|
|
||||||
file_name = "face_detection_yunet_2023mar.onnx"
|
file_name = "face_detection_yunet_2023mar.onnx"
|
||||||
home = functions.get_deepface_home()
|
home = functions.get_deepface_home()
|
||||||
if os.path.isfile(home + f"/.deepface/weights/{file_name}") is False:
|
if os.path.isfile(home + f"/.deepface/weights/{file_name}") is False:
|
||||||
@ -44,6 +42,7 @@ def detect_face(detector, image, align=True, score_threshold=0.9):
|
|||||||
if faces is None:
|
if faces is None:
|
||||||
return resp
|
return resp
|
||||||
for face in faces:
|
for face in faces:
|
||||||
|
# pylint: disable=W0105
|
||||||
"""
|
"""
|
||||||
The detection output faces is a two-dimension array of type CV_32F,
|
The detection output faces is a two-dimension array of type CV_32F,
|
||||||
whose rows are the detected face instances, columns are the location
|
whose rows are the detected face instances, columns are the location
|
||||||
|
Loading…
x
Reference in New Issue
Block a user