LykosAI / StabilityMatrix

Multi-Platform Package Manager for Stable Diffusion
https://lykos.ai
GNU Affero General Public License v3.0
4.53k stars 290 forks source link

Errors on onnxruntime #876

Open schoenid opened 1 month ago

schoenid commented 1 month ago

Had a strange error message 3 times at each startup of Stable Diffusion WebUI containing: E r r o r ... o n n x r u n t i m e _ p r o v i d e r s _ c u d a . d l l

According to https://towardsdatascience.com/how-to-run-stable-diffusion-with-onnx-dafd2d29cd14 I found, that the wrong ONNX version was installed by the Stability Matrix installer.

Solution on my side:

G:\SD\Packages\Stable Diffusion WebUI>venv\scripts\activate

(venv) G:\SD\Packages\Stable Diffusion WebUI>pip uninstall onnxruntime-gpu

Found existing installation: onnxruntime-gpu 1.19.0

Uninstalling onnxruntime-gpu-1.19.0:

  Would remove:

    g:\sd\packages\stable diffusion webui\venv\lib\site-packages\onnxruntime\*

    g:\sd\packages\stable diffusion webui\venv\lib\site-packages\onnxruntime_gpu-1.19.0.dist-info\*

    g:\sd\packages\stable diffusion webui\venv\scripts\onnxruntime_test.exe

Ÿ[SM;{"type": "input", "data": "Proceed (Y/n)? "}œProceed (Y/n)? y

  Successfully uninstalled onnxruntime-gpu-1.19.0

...

(venv) G:\SD\Packages\Stable Diffusion WebUI>pip install onnxruntime-gpu==1.17.1 --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/

...

(venv) G:\SD\Packages\Stable Diffusion WebUI>deactivate
github-actions[bot] commented 5 days ago

This issue is stale because it has been open 30 days with no activity. Remove the stale label or comment, else this will be closed in 5 days.