revert face filtering based on M

This commit is contained in:
David Chatel
2025-01-06 12:51:28 +01:00
parent e8c0d3a76b
commit 7176d84c5e
+1 -3
View File
@@ -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):