aqeelanwar / MaskTheFace

Convert face dataset to masked dataset
http://www.masktheface.aqeel-anwar.com
MIT License
565 stars 148 forks source link

Error when running "python mask_the_face.py --path 'data/frontal1.jpg' --mask_type N95 --verbose --write_original_image" with dlib==19.24.99 #42

Open zhang123-sys opened 6 months ago

zhang123-sys commented 6 months ago
(python3.6) E:\face_mask\MaskTheFace>python mask_the_face.py --path 'data/frontal1.jpg' --mask_type N95 --verbose --write_original_image
Traceback (most recent call last):
  File "mask_the_face.py", line 86, in <module>
    args.predictor = dlib.shape_predictor(path_to_dlib_model)
RuntimeError: Error deserializing object of type int

image

Arpan-14 commented 3 months ago

Update dlib library to newer versions.