Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError when using the CPU build via Docker #116

Open
mnts-i opened this issue Sep 28, 2023 · 1 comment
Open

ValueError when using the CPU build via Docker #116

mnts-i opened this issue Sep 28, 2023 · 1 comment

Comments

@mnts-i
Copy link

mnts-i commented Sep 28, 2023

I am running Docker on Ubuntu and I used the provided CPU dockerfile to build the image. The image is created successfully but the app keeps crashing with the following error:

valueerror: this ort build has ['azure execution provider', 'cudaexecutionprovider'] enabled. since ort 1.9, you are required to explicitly set the providers parameter when instantiating inferencesession

After some digging I found a similar issue from a different project: Gourieff/sd-webui-reactor#108. I followed the comments and edited the requirements.txt, bumping the onnx from 1.13.0 to 1.14.0 (and adding the onnxruntime==1.15.0) and the app started working again. Just posting it here for anyone who encounters the same error.

@SthPhoenix
Copy link
Owner

Hi! That's weird, I have build image from scratch and have no errors, but anyway I'll bump versions, just in case.Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants