Skip to content

Commit

Permalink
Fix linting error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-Stragier committed Jun 23, 2023
1 parent dcf9415 commit 9792af4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepface/detectors/YoloWrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)
Expand Down

0 comments on commit 9792af4

Please sign in to comment.