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

CUDA Issue - CUDA_PATH is set but CUDA wasn't able to be loaded.

Open kqmeta opened this issue 7 months ago • 4 comments

Describe the bug

When I try using the GPU, I get an error (Both when tryng to deepfake an image/video and live)

Screenshots

Image

Error Message "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."

Desktop (please complete the following information):

  • OS: Windows
  • Version 11 Pro
  • GPU RTX 4070 Super
  • CPU Ryzen 5 7600

Confirmation (Mandatory)

  • [x] I have followed the template
  • [x] This is not a query about how to increase performance
  • [x] I have checked the issues page, and this is not a duplicate

kqmeta avatar Apr 29 '25 23:04 kqmeta

Got same error here.

Jokcy avatar Apr 30 '25 11:04 Jokcy

Same

KakaoXI avatar Apr 30 '25 14:04 KakaoXI

Which python version did you used? and did you install cudnn?

KakaoXI avatar Apr 30 '25 14:04 KakaoXI

Which python version did you used? and did you install cudnn?

yes i installed cudnn, i'm using python 3.11.9

kqmeta avatar Apr 30 '25 18:04 kqmeta

make sure you get the cuDNN 8.6

I had to register to nvidia's archive website download the correct version (here) and then extract and copy-paste the directories into the cuda 11.8 directory

Albocoder avatar May 01 '25 03:05 Albocoder

Which python version did you used? and did you install cudnn?

yes i installed cudnn, i'm using python 3.11.9

Use cudnn 8.6.0 and use python version 3.10.9, the error you have is caused from python 11, so activate venv with python 3.10.9

KakaoXI avatar May 01 '25 07:05 KakaoXI

Here is the direct link for it.

https://developer.download.nvidia.com/compute/cudnn/secure/8.6.0/local_installers/11.8/cudnn-windows-x86_64-8.6.0.163_cuda11-archive.zip

Smiie-2 avatar May 01 '25 20:05 Smiie-2