From 9792af410dd4ea08761596e7c60ace44c1d27e4b Mon Sep 17 00:00:00 2001 From: Vincent STRAGIER Date: Fri, 23 Jun 2023 23:46:22 +0200 Subject: [PATCH] Fix linting error. --- deepface/detectors/YoloWrapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deepface/detectors/YoloWrapper.py b/deepface/detectors/YoloWrapper.py index f5b871b80..fd38a9b05 100644 --- a/deepface/detectors/YoloWrapper.py +++ b/deepface/detectors/YoloWrapper.py @@ -51,7 +51,8 @@ def detect_face(face_detector, img, align=False): # Extract landmarks left_eye, right_eye, _, _, _ = result.keypoints.tolist() # Check the landmarks confidence before alignment - if left_eye[2] > LANDMARKS_CONFIDENCE_THRESHOLD and right_eye[2] > LANDMARKS_CONFIDENCE_THRESHOLD: + if (left_eye[2] > LANDMARKS_CONFIDENCE_THRESHOLD and + right_eye[2] > LANDMARKS_CONFIDENCE_THRESHOLD): detected_face = FaceDetector.alignment_procedure( detected_face, left_eye[:2], right_eye[:2] )