ageitgey / ageitgey/face_recognition
CUDA error with DLIB and cnn.
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 56.8k
- Forks
- 13.7k
- PR merge metrics
- No merged PRs in 30d
Description
- face_recognition version: 1.0.0
- Python version: python3
- Operating System: Manjaro
Description
The application fails to run and reports an error in reference to my CUDA runtime and driver.
What I Did
I updated my system and am now getting the following errors in face_recognition. I am running the latest version of dlib and cuda.
Traceback (most recent call last):
File "./example.py", line 2, in <module>
from ml_face import *
File "/home/aaron/Development/bulk-image-facial-recognition/ml_face.py", line 1, in <module>
import face_recognition
File "/usr/lib/python3.6/site-packages/face_recognition/__init__.py", line 7, in <module>
from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
File "/usr/lib/python3.6/site-packages/face_recognition/api.py", line 21, in <module>
cnn_face_detector = dlib.cnn_face_detection_model_v1(cnn_face_detection_model)
RuntimeError: Error while calling cudaGetDevice(&the_device_id) in file /home/aaron/Development/tmp/dlib/dlib/dnn/gpu_data.cpp:178. code: 35, reason: CUDA driver version is insufficient for CUDA runtime version
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the import failure from example.py and trace the initialization through face_recognition/api.py to dlib/dnn/gpu_data.cpp. Check the reported CUDA driver and runtime versions, then determine whether a supported compatibility fix can be identified and verified without the CUDA error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100