face-alignment: Cannot download the model?

When I’m trying the example, I got something below, I suspect it cannot download the model, could you add a link of model?

hw@hw-work:~/workspace/02_work/52-face-aligment/examples$ python detect_landmarks_in_image.py
Traceback (most recent call last):
  File "detect_landmarks_in_image.py", line 8, in <module>
    fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._3D, enable_cuda=False, flip_input=False)
  File "build/bdist.linux-x86_64/egg/face_alignment/api.py", line 106, in __init__
  File "/home/hw/anaconda2/lib/python2.7/site-packages/torch/serialization.py", line 267, in load
    return _load(f, map_location, pickle_module)
  File "/home/hw/anaconda2/lib/python2.7/site-packages/torch/serialization.py", line 410, in _load
    magic_number = pickle_module.load(f)
cPickle.UnpicklingError: invalid load key, '<'.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

this is the link of model, you can download and put them into ~/.facealigment/data link:https://pan.baidu.com/s/15ap3uhfOA2hG8x9v3P13OA pw:84om

Try to download them from here: https://uniofnottm-my.sharepoint.com/:f:/g/personal/adrian_bulat_nottingham_ac_uk/Ev4KqgFQ5ENLsoy_plCiSLQBH-lxaoPLINqpNuSrhYcm8w?e=WnvCaW and then move the .tar files to {path_to_home}/.face_alignment

@1adrianb Thank you! I have solved this issue by manually downloading the face_detector and face_alignment model. Your passion and politeness impress me, thank you very much! Best, Edward