Deep-Live-Cam icon indicating copy to clipboard operation
Deep-Live-Cam copied to clipboard

CUDA .helm me please with this issue

Open scar1fac opened this issue 6 months ago • 1 comments

(venv) PS C:\Users\for intel\projects\dr\Deep-Live-Cam> python run.py --execution-provider cuda Frame processor face_enhancer not found Warning: Failed to load frame processor face_enhancer requested by UI state. [ WARN:[email protected]] global loadsave.cpp:241 cv::findDecoder imread_('D:/foto/╤Е╤М╤О.jpg'): can't open/read file: check file path/integrity 2025-05-13 00:57:51.8536820 [E:onnxruntime:Default, provider_bridge_ort.cc:1480 onnxruntime::TryGetProviderInfo_CUDA] D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1193 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

EP Error D:\a_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:743 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported. when using ['CUDAExecutionProvider'] Falling back to ['CUDAExecutionProvider', 'CPUExecutionProvider'] and retrying. 2025-05-13 00:57:51.9725681 [E:onnxruntime:Default, provider_bridge_ort.cc:1480 onnxruntime::TryGetProviderInfo_CUDA] D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1193 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"

Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 419, in init self._create_inference_session(providers, provider_options, disabled_optimizers) File "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 463, in _create_inference_session sess.initialize_session(providers, provider_options, disabled_optimizers) RuntimeError: D:\a_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:743 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\tkinter_init_.py", line 1921, in call return self.func(*args) File "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\customtkinter\windows\widgets\ctk_button.py", line 554, in _clicked self._command() File "C:\Users\for intel\projects\dr\Deep-Live-Cam\modules\ui.py", line 351, in command=lambda: webcam_preview( File "C:\Users\for intel\projects\dr\Deep-Live-Cam\modules\ui.py", line 792, in webcam_preview create_webcam_preview(camera_index) File "C:\Users\for intel\projects\dr\Deep-Live-Cam\modules\ui.py", line 911, in create_webcam_preview source_image = get_one_face(cv2.imread(modules.globals.source_path)) File "C:\Users\for intel\projects\dr\Deep-Live-Cam\modules\face_analyser.py", line 28, in get_one_face face = get_face_analyser().get(frame) File "C:\Users\for intel\projects\dr\Deep-Live-Cam\modules\face_analyser.py", line 22, in get_face_analyser FACE_ANALYSER = insightface.app.FaceAnalysis(name='buffalo_l', providers=modules.globals.execution_providers) File "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\insightface\app\face_analysis.py", line 31, in init model = model_zoo.get_model(onnx_file, **kwargs) File "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\insightface\model_zoo\model_zoo.py", line 96, in get_model model = router.get_model(providers=providers, provider_options=provider_options) File "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\insightface\model_zoo\model_zoo.py", line 40, in get_model session = PickableInferenceSession(self.onnx_file, **kwargs) File "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\insightface\model_zoo\model_zoo.py", line 25, in init super().init(model_path, **kwargs) File "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 430, in init raise fallback_error from e File "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 425, in init self._create_inference_session(self._fallback_providers, None) File "C:\Users\for intel\projects\dr\Deep-Live-Cam\venv\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 463, in _create_inference_session sess.initialize_session(providers, provider_options, disabled_optimizers) RuntimeError: D:\a_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:743 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.

but with cpu it works well but 5 fps))))

(venv) PS C:\Users\for intel\projects\dr\Deep-Live-Cam> nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022 Cuda compilation tools, release 11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0

(venv) PS C:\Users\for intel\projects\dr\Deep-Live-Cam> pip show onnxruntime-gpu Name: onnxruntime-gpu Version: 1.16.3 Summary: ONNX Runtime is a runtime accelerator for Machine Learning models Home-page: https://onnxruntime.ai Author: Microsoft Corporation Author-email: [email protected] License: MIT License Location: c:\users\for intel\projects\dr\deep-live-cam\venv\lib\site-packages Requires: coloredlogs, flatbuffers, numpy, packaging, protobuf, sympy Required-by:

scar1fac avatar May 12 '25 17:05 scar1fac