Spaces:
Runtime error
Runtime error
Update util.py
Browse files
util.py
CHANGED
@@ -128,7 +128,6 @@ def align_face(filepath, output_size=256, transform_size=1024, enable_padding=Tr
|
|
128 |
:param filepath: str
|
129 |
:return: PIL Image
|
130 |
"""
|
131 |
-
ensure_checkpoint_exists("dlibshape_predictor_68_face_landmarks.dat")
|
132 |
predictor = dlib.shape_predictor("dlibshape_predictor_68_face_landmarks.dat")
|
133 |
lm = get_landmark(filepath, predictor)
|
134 |
|
|
|
128 |
:param filepath: str
|
129 |
:return: PIL Image
|
130 |
"""
|
|
|
131 |
predictor = dlib.shape_predictor("dlibshape_predictor_68_face_landmarks.dat")
|
132 |
lm = get_landmark(filepath, predictor)
|
133 |
|