Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
4c71d5b
1
Parent(s):
76c051f
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def inference(img, model):
|
|
107 |
#aligned_face = Image.fromarray(img[:,:,::-1])
|
108 |
|
109 |
face_helper.read_image(img)
|
110 |
-
face_helper.get_face_landmarks_5(only_center_face=False, eye_dist_threshold=
|
111 |
face_helper.align_warp_face(save_cropped_path="/home/user/app/")
|
112 |
pilimg = Image.open("/home/user/app/_02.png")
|
113 |
|
|
|
107 |
#aligned_face = Image.fromarray(img[:,:,::-1])
|
108 |
|
109 |
face_helper.read_image(img)
|
110 |
+
face_helper.get_face_landmarks_5(only_center_face=False, eye_dist_threshold=10)
|
111 |
face_helper.align_warp_face(save_cropped_path="/home/user/app/")
|
112 |
pilimg = Image.open("/home/user/app/_02.png")
|
113 |
|