You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Unhandled exception. Microsoft.ML.OnnxRuntime.OnnxRuntimeException: [ErrorCode:RuntimeException] D:\a\_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1209 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "...\bin\Debug\net8.0\onnxruntime_providers_cuda.dll"
at Microsoft.ML.OnnxRuntime.SessionOptions.AppendExecutionProvider_CUDA(Int32 deviceId)
at OnnxStack.Core.Extensions.GetSessionOptions(OnnxModelConfig configuration)
at OnnxStack.Core.Model.OnnxModelSession..ctor(OnnxModelConfig configuration)
at OnnxStack.StableDiffusion.Models.UNetConditionModel..ctor(UNetConditionModelConfig configuration)
at OnnxStack.StableDiffusion.Pipelines.StableDiffusionPipeline.CreatePipeline(StableDiffusionModelSet modelSet, ILogger logger)
at OnnxStack.StableDiffusion.Pipelines.StableDiffusionPipeline.CreatePipeline(String modelFolder, ModelType modelType, Int32 deviceId, ExecutionProvider executionProvider, MemoryModeType memoryMode, ILogger logger)
at UnstableDiffusion.UnstableDiff..ctor(String model) in ...\StableDiff.cs:line 20
at Program.<Main>$(String[] args) in ...\Program.cs:line 3
at Program.<Main>(String[] args)
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 DLL
Environment:
Windows 10
.NET 8.0.200
OnnxStack.StableDiffusion 0.31.0
CUDA 12.2
cuDNN 8.9.2.26
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: