-
Notifications
You must be signed in to change notification settings - Fork 129
CUDA issue #49
Comments
For this to work smoothly, trust me, you will need cuda 11.4 and cuDnn8.2.4.15.. install them separately..and add to env path. That's the requirement for onnxruntime-gpu. Refacer solely depends on the system cuda and cudnn. It's unlike auto1111 and roop. During installation, both automatic1111 & roop download torch with cuda and cudnn. They don't depend on the cuda and cudnn you have on your pc. If you believe that they work because of cuda 12.1 you installed on the PC, you are wrong. Even if you uninstall them, roop and automatic1111 would continue to work, because they have all dependencies installed via pip. So plz install the versions I mentioned. It doesn't matter what you already have on your system. Different cuda and cudnn versions can co exist in one pc. Make sure all are in path. |
ok i'll try but i got a WSL/ubuntu on my win11, and i successfuly run refacer.
So, it is weird, it works fine with CUDA 12.1 on ubuntu but not on native win11. |
It all depends on the onnxruntime-gpu. On windows, it's not as up-to-date as the one available for linux. Roop downloads cuda 11.8 with cudnns. So I guess anything greater than 11.8 may not work. The most desirable version is cuda 11.4 & cuDnn8.2.4.15. |
thanks, i'm dowloading cuda 11.8 to test. About cuDnn, i don't have currently any version of it, i was not aware it is required. |
same issue with CUDA 11.8
CUDA 11.4 is only available for Windows 10 and i'm running Windows 11 |
Ok i followed your recommandation but still same issue with CUDA 11.4 and CuDnn8.2.4
What am I missing ? |
That's strange. I faced similar issues but installing the proper cuda and cudnn resolved the problem for me. Have u installed cudnn 8.2.4.15? No other version would work. |
ok CUDNN is in the path but still issue:
PATH:
|
This is the exact setup I have and it works flawlessly. |
ok at the end i managed to make it working with the help of a guy (Doofenshmirtz, thanks to him) on discord. he told me that I should install torch and import it before onnxruntime So, i installed torch and modified refacer.py to add "import torch" before "import onnxruntime" It means my CUDA installation are not used (like for roop).
|
Okay good for you.. mine works right out of the box.. without having to install torch.. |
I got CUDA 12.1 installed on win11
I'm running as well roop with venv.
I'm running as well A111 with venv also.
For refacer, i run "pip install -r requirements-GPU.txt" successfuly also in a venv.
but when launching, i got this error related to CUDA, it doesn't find it. I'm puzzled because i didn't do anything special for roop and A1111.
CUDA is available:
any clue is welcome.
thanks
The text was updated successfully, but these errors were encountered: