Unable to open assets\shape_predictor_68_face_landmarks.dat
- Dominant language
- Python
- Stars
- 12
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with PyFry.py at addFlare on line 54, where the assets\shape_predictor_68_face_landmarks.dat path is passed to dlib, and verify the referenced file under assets. Run python PyFry.py on macOS to reproduce the error. Done means the predictor opens successfully and execution proceeds without the RuntimeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100