-
Notifications
You must be signed in to change notification settings - Fork 83
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
Suggestion: include memory optimizations based on code from another fork #2
Comments
Try it with half precision: Add Works on my 8GB GPU. |
I can't get it to work for the chunk part in half mode @nickRJ |
I rewrite the message since I have this error:
the command is: python .\scripts\txt2imghd.py --prompt "a photograph of an astronaut riding a horse" --strength=1.0 --ddim |
Got the same error, it was the indentation before |
The aforementioned fork allows generation of 512x512 images on 4GB vRAM cards, which should be the baseline to compare against imo. |
https://github.com/basujindal/stable-diffusion has a version of SD with optimized memory usage, for some 8GB VRAM card owners (such as myself) this can mean being able to generate 512x512 images (this script, as well as native SD code, crash with "out of memory" error). If it is possible to implement these or similar optimizations within this script, it would be highly appreciated.
The text was updated successfully, but these errors were encountered: