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

Inference doesn't run on cpu only device #16

Closed
JDups opened this issue Jul 2, 2024 · 1 comment
Closed

Inference doesn't run on cpu only device #16

JDups opened this issue Jul 2, 2024 · 1 comment

Comments

@JDups
Copy link

JDups commented Jul 2, 2024

Attempting to run inference.run_inference() with device='cpu' on a Google colab CPU only instance produces an error.

RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

I worked around this by commenting out lines 30 to 32 of /ldm/models/diffusion/ddim.py. I am not sure if this will cause problems elsewhere that I haven't noticed.

@egeozguroglu
Copy link
Collaborator

Hi, we haven't tested on CPU-based inference or Google Colab, given the compute requirements. Your solution should be fine as a workaround.

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