mirror of
https://github.com/hacksider/Deep-Live-Cam.git
synced 2026-07-10 12:28:37 +02:00
fix(face): avoid hiding invalid face inputs
This commit is contained in:
@@ -147,7 +147,7 @@ def get_one_face(frame: Frame, faces: Any = None) -> Any:
|
||||
faces = _analyse_faces(frame)
|
||||
try:
|
||||
return min(faces, key=lambda x: x.bbox[0])
|
||||
except (TypeError, ValueError):
|
||||
except ValueError:
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user