codeniko / shape_predictor_81_face_landmarks

Custom shape predictor model trained to find 81 facial feature landmarks given any image
BSD 3-Clause "New" or "Revised" License
466 stars 127 forks source link

An error appeared when running the demo #5

Closed githubcyy closed 4 years ago

githubcyy commented 5 years ago

RuntimeError: Error deserializing object of type int image

codeniko commented 5 years ago

May I ask what python version you are using? I'm not sure how it's done on windows, but on linux/mac you can run python --version in terminal

imaccormick275 commented 5 years ago

I had the same problem but managed to resolve. I was reading somewhere the error can happen if the file is corrupted. So I git cloned the entire repository to get the file rather than downloading the individual file manually. I have no idea why this would make any difference but it seems to have fixed the issue.

codeniko commented 5 years ago

Awesome! Not sure why that's the case but happy that it worked