cassiebreviu / StableDiffusion

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

load failed ortextensions.dll #18

Closed AJ-comp closed 1 year ago

AJ-comp commented 1 year ago

I have clone this project and edit configure content as below. (update the dll file path and onnx file path) I haven't changed anything other than that in the source. image

And I did copy and paste the onnx file and the dll file to the execution file path. The result is as below. image

And I execute the source file in the debug mode and I faced an error as below. image

There is a ortextensions.dll file in the path as below image

Could you tell me the solution?

alanextar commented 1 year ago

Have the same issue

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();"