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

Cannot import Facerecognition on Pycharm #18

Open
gm24med opened this issue Mar 13, 2023 · 0 comments
Open

Cannot import Facerecognition on Pycharm #18

gm24med opened this issue Mar 13, 2023 · 0 comments

Comments

@gm24med
Copy link

gm24med commented Mar 13, 2023

  • face_recognition version: 1.3.0
  • Python version: 3.10
  • Operating System: Windows 11

Description

I'm trying to import Face recognition on Pycharm , and i get this error :
pose_predictor_68_point = dlib.shape_predictor(predictor_68_point_model)
RuntimeError: Unable to open C:\Users...\venv\lib\site-packages\face_recognition_models\models\shape_predictor_68_face_landmarks.dat

i checked , the shape predictor file exists in the models folder

"C:\Users\SIMO1\OneDrive - Université Mohammed VI Polytechnique\Desktop\MVP AE\venv\Scripts\python.exe" "C:\Users\SIMO1\OneDrive - Université Mohammed VI Polytechnique\Desktop\MVP AE\Encodeur.py"
Traceback (most recent call last):
File "C:\Users\SIMO1\OneDrive - Université Mohammed VI Polytechnique\Desktop\MVP AE\Encodeur.py", line 3, in
import face_recognition
File "C:\Users\SIMO1\OneDrive - Université Mohammed VI Polytechnique\Desktop\MVP AE\venv\lib\site-packages\face_recognition_init_.py", line 7, in
from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
File "C:\Users\SIMO1\OneDrive - Université Mohammed VI Polytechnique\Desktop\MVP AE\venv\lib\site-packages\face_recognition\api.py", line 20, in
pose_predictor_68_point = dlib.shape_predictor(predictor_68_point_model)
RuntimeError: Unable to open C:\Users\SIMO1\OneDrive - Université Mohammed VI Polytechnique\Desktop\MVP AE\venv\lib\site-packages\face_recognition_models\models\shape_predictor_68_face_landmarks.dat

Process finished with exit code 1

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

1 participant