akhaliq HF staff commited on
Commit
1f22b09
1 Parent(s): b302e42

Update util.py

Browse files
Files changed (1) hide show
  1. util.py +0 -1
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