stable-diffusion-webui-amdgpu-forge icon indicating copy to clipboard operation
stable-diffusion-webui-amdgpu-forge copied to clipboard

ONNX failed to initialize

Open bigwinboy opened this issue 1 year ago • 8 comments

I reinstalled it today, I can enter the interface, but every time I start it prompts ONNX failed to initialize: module 'optimum.onnxruntime.modeling_diffusion' has no attribute '_ORTDiffusionModelPart', is it normal? 2024-10-16 173137

bigwinboy avatar Oct 16 '24 09:10 bigwinboy

I met this too. You may just downgrade your optimum to 1.22.0

zhucezy avatar Oct 18 '24 12:10 zhucezy

I met this too. You may just downgrade your optimum to 1.22.0

Thank you

bigwinboy avatar Oct 18 '24 12:10 bigwinboy

I downgraded still have the error

kappel79 avatar Oct 22 '24 08:10 kappel79

I downgraded still have the error

Delete the folder named venv, modify the txt document called requirements_versions, find the optimum in it, just change it to optimum==1.22.0, save the txt document, and restart SD.

bigwinboy avatar Oct 22 '24 08:10 bigwinboy

I downgraded still have the error

Delete the folder named venv, modify the txt document called requirements_versions, find the optimum in it, just change it to optimum==1.22.0, save the txt document, and restart SD. Yes. if don't modify "optimum>=1.23" in requirements_versions, even you downgrade it, it will be upgraded to 1.23 automatically.

zhucezy avatar Oct 28 '24 09:10 zhucezy

I downgraded still have the error

Delete the folder named venv, modify the txt document called requirements_versions, find the optimum in it, just change it to optimum==1.22.0, save the txt document, and restart SD. Yes. if don't modify "optimum>=1.23" in requirements_versions, even you downgrade it, it will be upgraded to 1.23 automatically.

Now this method doesn't work, and after the update in the last day or two, it fails to start if I'm using version 1.22.0, so I reverted the line back in order to start properly.

bigwinboy avatar Oct 28 '24 11:10 bigwinboy

Today optimum was updated to 1.23.0. I haven't tested yet but yesterday it couldn't launch on 1.22.0 so it might be fixed if you will update to 1.23.0

TheFerumn avatar Oct 28 '24 16:10 TheFerumn

Today optimum was updated to 1.23.0. I haven't tested yet but yesterday it couldn't launch on 1.22.0 so it might be fixed if you will update to 1.23.0

Deleted the venv folder, re-downloaded, and used 1.23.0 for optimum. The error code is still there, but it looks like this: ONNX failed to initialize: module 'modules.devices' has no attribute 'backend'

bigwinboy avatar Nov 01 '24 15:11 bigwinboy