Skip to content

Errors on onnxruntime #876

@schoenid

Description

@schoenid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleStale issue or inactive for long period of time

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions