Out of memory condition on 8 gig GPUs in SDXL outputing 16 x 9 picture in high resolution
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 153
Description
I have an 8 Gig GPU and have been able to pull out SDXL drawing in high resolution until one day I started to have out of memory error. Even having ComfyUI redoing old picture by dragging them in the program were producing the same out of memory error...
And that is until I realized that I had turned on the preview method in the manager so that I could see the image forming in the samplers and it was created and that was giving me the out of memory condition right after having shown the picture and getting partly through the high resolution sampler or even just partly through the latent detailer portion of the process. It would stop comfy in its track if I wanted to have it produce high-resolution pictures.
Turning off the preview method suddenly fixed all those memory problems!!! Along in windows 10 (don't know about windows 11) setting the advance system settings/performance/ and virtual memory to at least 32000 MB initial size and 64000 MB maximum size or more depending on your system configuration. Letting the virtual memeory be manage by the system was also sometimes causing shortage of memory error while making SDXL HD pictures.
With the preview turn off, I'm now able to again get high-resolution SDXL which are 9X16 (1344x768) without any problems. Even making a high res 1680 X 960 and even upscaling them to 8400 x 4800 without a itch...
Conclusion, all those people reporting memory problem probably have turned on the preview in comfyUI... The error seem to pop up even in 12 Gig GPUs.
So I'm suggesting that there might be something not working properly with the preview part of the process or there is an unwanted interaction from it that is causing those strange out of memory errors conditions...
Hope it helps tracking that nagging bug if it’s a bug; otherwise, people should be warned that on low 8 Gig GPUs or even 12 Gig GPUs that they should turn off the preview mode if they want to make high-resolution pictures in SDXL and make sure the virtual memory in windows 10 is high enough.
Thank you.
Contributor guide
Assessment
This issue has not been assessed yet.