Created a tool to run Hires.fix without launch webui, so you can upscale x4 without CUDA memory issue. #7622
Replies: 2 comments
-
Well, if you don't call S.D., I believe what you do is just an upscale, not hires fix (which uses an upscaler + img2img from S.D. on the upscaled image) |
Beta Was this translation helpful? Give feedback.
-
I think you misunderstood what hiresfix does. It actually upscales the image but since it's actually doing second SD pass with use of latent space in mind, it also adds a lot details to it and makes it sharper - that's why people use it in the first place. You can do plain ESRGAN upscale in Extras tab, with additional Codeformer or GFPGAN for faces if needed. This method doesn't consume much memory and doesn't cause any errors. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In Stable Diffusion Webui, when running Hires.fix with multiple images, we often get a "CUDA out of memory" error. That's because the Stable Diffusion is still in your VRAM, so not much left for Hires.fix's Upscalers' AI.
With this tool, you can run Hires.fix's Upscaler without launch Stable Diffusion webui. So you can batch upscale a whole folder's images at once, and with sizex4 as default, without any CUDA memory issue.
Check it out:
https://github.com/butaixianran/Stable-Diffusion-Webui-Real-ESRGAN-bat
(Windows only)
Beta Was this translation helpful? Give feedback.
All reactions