There is an (admittedly jank) workaround to the OOM issue going around. #209
Closed
RealSourceOfficial
started this conversation in
Ideas
Replies: 1 comment
-
I'm currently investigating any ways to improve the loading times so as to not delete the entire Upon some further inspection, the effects vary, and the VRAM appears to be only visually reduced. However, it's a step in the right direction, and seems to open a few possibilities. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For any new users, do note initial usage only ramps up AFTER an image is generated, so restarting SD without generating any images does not affect the initial VRAM usage.
Using some command line magic, I've found removing the
venv
folder on launch reduces the initial VRAM usage. (On my card, normal startup uses 2GB/4GB VRAM, rendering me unable to generate images) This makes it possible to generate images at resolutions like 512x768 with a RX580 4GB card, without running out of VRAMHowever, by adding
rmdir /s /q venv
to thewebui-user.bat
, I've found that the initial VRAM cost drops from 2GB to about 1GB. Yes, it does take a few more minutes to open SD, however, it's a very temporary fix until the memory leaks can be fixed.This is most notably a problem while generating large images with something like Tiled Diffusion, where you as much VRAM as you can get (Tiled VAE is almost required to generate images larger than 512x512 in my case)
(my) webui-user.bat:
Beta Was this translation helpful? Give feedback.
All reactions