Open JacobCZ opened 2 months ago
Hey JacobCZ
The CUDA
and TensorRT
OnnxRuntime packages require their own dependencies to be installed, CUDA Toolkit
and cuDNN
LoadLibrary failed with error 126
happens when it cant find one of those dependencies, unfortunately this happens to a few users and I have no idea what causes the issue.
We recommend DirectML
if your card supports DirectX
as its significantly faster than CUDA
and does not require external dependencies.
Trying the minimal stable diffusion example from the readme, when I run the code (with
executionProvider: ExecutionProvider.Cuda
in the ctor to use CUDA) I get the following error:I'm not sure what to do about this. I tried manually installing the CUDA SDK and cuDNN to no avail.
bin\Debug\net8.0\onnxruntime_providers_cuda.dll
exists and seems to be a valid DLLEnvironment: