Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat .......i have tried to put this in the same directory also....and downloaded latest version and uncompressed it and still this issue is not getting solved. Please Help #449

Open
vikramadityaw01 opened this issue Mar 15, 2022 · 3 comments

Comments

@vikramadityaw01
Copy link

vikramadityaw01 commented Mar 15, 2022

ss

@SirZexx
Copy link

SirZexx commented Sep 12, 2022

I faced the same issue tomorrow and I found that you just have to download that dat file and place it in your project folder with python file. the link is : http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 , just download it and extract it and re-run the program it should be fine.

@boogaming
Copy link

Use pyinstaller -c PyFileName.py (with console) or pyinstaller -w PyFileName.py (without console) instead of pyinstaller --onefile PyFileName.py. Then add folder containing face_recognition models .dat files. Example, "face_recognition_models/models/shape_predictor_68_face_landmarks.dat" in the same folder of the executable file.

@sahil06habile
Copy link

Use pyinstaller -c PyFileName.py (with console) or pyinstaller -w PyFileName.py (without console) instead of pyinstaller --onefile PyFileName.py. Then add folder containing face_recognition models .dat files. Example, "face_recognition_models/models/shape_predictor_68_face_landmarks.dat" in the same folder of the executable file.

what will be the file structure if i am adding "face_recognition_models/models/shape_predictor_68_face_landmarks.dat" in code. Because i added this file as binary but exe file still showing the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants