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

cnn_face_detector = dlib.cnn_face_detection_model_v1(cnn_face_detection_model) RuntimeError: Error while calling cudaGetDevice(&the_device_id) in file /tmp/pip-install-1n4zswvd/dlib/dlib/cuda/gpu_data.cpp:204. code: 999, reason: unknown error #1

Open
Rafhael369 opened this issue Jul 17, 2023 · 1 comment

Comments

@Rafhael369
Copy link

Would you help me?

I created a python development environment, installed opencv-python and face_recognition.

But when running the main code on linux, it returns this error:

(env) rafhael@rafhael-Alienware-m15-R6:~/Projetos/SMA/mi-sma-testes/face_rec$ python main.py 
Traceback (most recent call last):
  File "main.py", line 24, in <module>
    import face_recognition
  File "/home/rafhael/Projetos/SMA/mi-sma-testes/face_rec/env/lib/python3.8/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 "/home/rafhael/Projetos/SMA/mi-sma-testes/face_rec/env/lib/python3.8/site-packages/face_recognition/api.py", line 26, 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 /tmp/pip-install-1n4zswvd/dlib/dlib/cuda/gpu_data.cpp:204. code: 999, reason: unknown error
@Davicjc
Copy link
Owner

Davicjc commented Jul 17, 2023 via email

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

2 participants