From 7176d84c5e99673c07eee00d023f501d021a4732 Mon Sep 17 00:00:00 2001 From: David Chatel Date: Mon, 6 Jan 2025 12:51:28 +0100 Subject: [PATCH] revert face filtering based on M --- utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils.py b/utils.py index 543edf9..a1897cd 100644 --- a/utils.py +++ b/utils.py @@ -136,9 +136,7 @@ def detect_faces(img, threshold): a,b,c,d = [int(x) for x in (cx - r, cy - r, cx + r, cy + r)] face = Face(img, a, b, c, d) - M = estimate_norm(face.kps, 512) - if abs(M[0,0]) > 1 and abs(M[1,1]) > 1: - faces.append(face) + faces.append(face) return faces def get_face_mesh(crop: torch.Tensor):