Spaces:
Running
Running
- align_faces.py +1 -1
align_faces.py
CHANGED
@@ -212,7 +212,7 @@ def warp_and_crop_face(src_img,
|
|
212 |
reference_pts=None,
|
213 |
crop_size=(96, 112),
|
214 |
align_type='smilarity'): #smilarity cv2_affine affine
|
215 |
-
if reference_pts
|
216 |
if crop_size[0] == 96 and crop_size[1] == 112:
|
217 |
reference_pts = REFERENCE_FACIAL_POINTS
|
218 |
else:
|
|
|
212 |
reference_pts=None,
|
213 |
crop_size=(96, 112),
|
214 |
align_type='smilarity'): #smilarity cv2_affine affine
|
215 |
+
if reference_pts is None:
|
216 |
if crop_size[0] == 96 and crop_size[1] == 112:
|
217 |
reference_pts = REFERENCE_FACIAL_POINTS
|
218 |
else:
|