Face_recognition и dlib пытаются использовать cuda, когда карта nvidia не установленаPython

Программы на Python
Anonymous
Face_recognition и dlib пытаются использовать cuda, когда карта nvidia не установлена

Сообщение Anonymous »


im trying to load the face_recognition on my intel w/ igpu, after isntalling and reinstalig dlib i havent be able to make it run, here is my code

import face_recognition --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) in ----> 1 import face_recognition ~/anaconda3/envs/tfs_cpu/lib/python3.7/site-packages/face_recognition/__init__.py in 5 __version__ = '1.2.3' 6 ----> 7 from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance ~/anaconda3/envs/tfs_cpu/lib/python3.7/site-packages/face_recognition/api.py in 24 25 cnn_face_detection_model = face_recognition_models.cnn_face_detector_model_location() ---> 26 cnn_face_detector = dlib.cnn_face_detection_model_v1(cnn_face_detection_model) 27 28 face_recognition_model = face_recognition_models.face_recognition_model_location() RuntimeError: Error while calling cudaGetDevice(&the_device_id) in file /tmp/pip-install-x2i2y7s0/dlib/dlib/cuda/gpu_data.cpp:201. code: 100, reason: no CUDA-capable device is detected i have uninstalled the two libraries like this

pip3 uninstall dlib pip3 uninstall face_recognition pip uninstall dlib pip uninstall face_recognition then i install them like this

pip3 install -v --install-option="--no" --install-option="DLIB_USE_CUDA" dlib pip3 install face_recognition but the librarie just pop ups the same error, any advice in order to solve this would be great!

thanks for reading


Источник: https://stackoverflow.com/questions/606 ... -installed

Вернуться в «Python»