pkuliyi2015 / multidiffusion-upscaler-for-automatic1111

Tiled Diffusion and VAE optimize, licensed under CC BY-NC-SA 4.0
Other
4.59k stars 330 forks source link

"Tiny" image (1152x1152) triggers check, causing no VAE tiling #389

Open ajs opened 2 months ago

ajs commented 2 months ago

My system routinely runs itself out of VRAM while VAE decoding using A1111. This extension does a perfect job of preventing it, but only on extremely massive images. For images of 1152x1152, I get the error from this code:

https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111/blob/574a0963133a34815f65bfaf985c19de54fdf323/scripts/tilevae.py#L382

Which suggest that the constants used (pad) might be too large? I haven't traced through the code, but if you could add a way to just override this check, I'd appreciate it!

Kahsolt commented 3 weeks ago

What decode tile_size do you use? try set it smaller