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

Unable to open assets\shape_predictor_68_face_landmarks.dat #13

Open
gnany07 opened this issue Oct 27, 2019 · 1 comment
Open

Unable to open assets\shape_predictor_68_face_landmarks.dat #13

gnany07 opened this issue Oct 27, 2019 · 1 comment

Comments

@gnany07
Copy link

gnany07 commented Oct 27, 2019

gmale@GMALE-M-R0DA:~/Documents/GitHub/PyFry$ python PyFry.py
objc[35976]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff989f33d8) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x12395af50). One of the two will be used. Which one is undefined.
picture location = ['/Users/gmale/Documents/GitHub/PyFry/test.jpg']
Traceback (most recent call last):
File "PyFry.py", line 124, in
main()
File "PyFry.py", line 114, in main
img = addFlare(img)
File "PyFry.py", line 54, in addFlare
predict = dlib.shape_predictor("assets\shape_predictor_68_face_landmarks.dat")
RuntimeError: Unable to open assets\shape_predictor_68_face_landmarks.dat

I don't know if this is macos specific issue or not.
While I tried to run PyFry.py, dlib is not able to open "shape_predictor_68_face_landmarks.dat" which is under assets folder.

@gnany07
Copy link
Author

gnany07 commented Oct 27, 2019

The issue is resolved by adding absolute path of dat file.
I know this is cosmetic issue but anyone who clones the repo and tries to run PyFry.py faces the problem.
I will raise the PR with the fix.

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