From 3df70b14ca7cdca41354ffa0367f2c27716237aa Mon Sep 17 00:00:00 2001 From: henryruhs Date: Thu, 12 Jun 2025 17:54:30 +0200 Subject: [PATCH] Kill some elif --- facefusion/processors/modules/face_debugger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/facefusion/processors/modules/face_debugger.py b/facefusion/processors/modules/face_debugger.py index 8993107..5f9df93 100755 --- a/facefusion/processors/modules/face_debugger.py +++ b/facefusion/processors/modules/face_debugger.py @@ -83,11 +83,11 @@ def debug_face(target_face : Face, temp_vision_frame : VisionFrame) -> VisionFra if target_face.angle == 0: cv2.line(temp_vision_frame, (x1, y1), (x2, y1), primary_light_color, 3) - elif target_face.angle == 180: + if target_face.angle == 180: cv2.line(temp_vision_frame, (x1, y2), (x2, y2), primary_light_color, 3) - elif target_face.angle == 90: + if target_face.angle == 90: cv2.line(temp_vision_frame, (x2, y1), (x2, y2), primary_light_color, 3) - elif target_face.angle == 270: + if target_face.angle == 270: cv2.line(temp_vision_frame, (x1, y1), (x1, y2), primary_light_color, 3) if 'face-mask' in face_debugger_items: