-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How to generate image without GPU? #54
Comments
Generating images on the CPU is possible but not with default settings. Here's how you will need to modify generate.py to enable CPU generation:
Basically, run it on the CPU device and use only fp32. Note that there is a marked performance difference between running on the CPU. On my machine, generating an image takes roughly 20 ms whereas the same code on the CPU takes 1500 ms, ie., 75 times slower. |
Why not add an param to choose generate with GPU or CPU? Can I create a PR? |
What about projecting images in latent space? |
project.py line 98ish
line 163:
|
How to generate image without GPU?
The text was updated successfully, but these errors were encountered: