cassiebreviu / StableDiffusion

Inference Stable Diffusion with C# and ONNX Runtime
MIT License
218 stars 49 forks source link

ortextensions won't load #15

Closed btarg closed 1 year ago

btarg commented 1 year ago

I just cloned the DirectML version of the repo since I'm running an RX 5700, and I get this error when clicking play in Visual Studio 2022:

cassiebreviu commented 1 year ago

The error is blank, can you add the issue?

alanextar commented 1 year ago

I think the error is as follows Microsoft.ML.OnnxRuntime.OnnxRuntimeException: '[ErrorCode:Fail] LoadLibrary failed with error 126 "" when trying to load "ortextensions.dll"'

cassiebreviu commented 1 year ago

Hey! There is a new version of onnx runtime and onnx runtime extensions that will resolve this issue. If you want to try the pre-release alpha versions they are in nuget now. Then to load the dll you simply call "sessionOptions.RegisterOrtExtensions();"