lshqqytiger / stable-diffusion-webui-amdgpu-forge

Forge for stable-diffusion-webui-amdgpu (formerly stable-diffusion-webui-directml)
GNU Affero General Public License v3.0
55 stars 4 forks source link

ONNX failed to initialize #45

Open bigwinboy opened 1 month ago

bigwinboy commented 1 month ago

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

zhucezy commented 4 weeks ago

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

bigwinboy commented 4 weeks ago

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

Thank you

kappel79 commented 3 weeks ago

I downgraded still have the error

bigwinboy commented 3 weeks ago

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.

zhucezy commented 2 weeks ago

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.

bigwinboy commented 2 weeks ago

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.

TheFerumn commented 2 weeks ago

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

bigwinboy commented 2 weeks ago

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'