pkuliyi2015 / sd-webui-stablesr

StableSR for Stable Diffusion WebUI - Ultra High-quality Image Upscaler
https://iceclear.github.io/projects/stablesr/
Other
1.05k stars 54 forks source link

RAM limit for high size upscale #9

Closed witotoole closed 1 year ago

witotoole commented 1 year ago

Trying to upscale an image from 3072x6144 to 2x, the RAM load increases sharply and then the process stops with this error:

”RuntimeError: [enforce fail at ..\c10\core\impl\alloc_cpu.cpp:72] data. DefaultCPUAllocator: not enough memory: you tried to allocate 42467328 bytes.”

image

image

image

image

image

I am running a PC with 32GB of RAM

pkuliyi2015 commented 1 year ago

Please disable the Tiled VAE Encoder Color Fix. It takes a lot of RAM for very large images.

witotoole commented 1 year ago

That seem to have fixed it. Thanks!