A progressive upscaling-img2img version of hires.fix, extension script for AUTOMATIC1111/stable-diffusion-webui.
Highres.fix pipline gives us an inspirable way to sketch-and-refine an image, we could make it even further~
⚠ This is possibly obsolete, try use multidiffusion-upscaler-for-automatic1111 for img2img upscale instead :)
⚪ progressive vs. official
official | ||||||
---|---|---|---|---|---|---|
hires steps | 10 | 20 | 30 | 60 | 90 | 120 |
progressive | ||||||
iter * step | 4*3=12 | 4*5=20 | 4*8=32 | 4*15=60 | 4*23=92 | 4*30=120 |
ℹ It is found that original hires.fix sometimes suffers from color red-shift, on the contratry, the progressive version suffers from blue-shift. I don't know why though...
⚪ balancing iter and step
progressive | |||||||
---|---|---|---|---|---|---|---|
iter * step = 120 | 1 * 120 | 2 * 60 | 3 * 40 | 4 * 30 | 6 * 20 | 8 * 15 | 10 * 12 |
1x120:
2x60:
3x40:
4x30:
6x20:
8x15:
10x12:
raw lowres (txt2img ouput) | raw highres (upscale only) |
---|---|
Commom parameters for above demo images:
Steps: 20
Sampler: Euler a
CFG scale: 7
Seed: 1919810
Size: 512 x 512
Target size: 1024 x 1024
Upscaler: Lanczos
Denoising strength: 0.5
⚪ How the original hires.fix works?
It takes three steps:
txt2img
to sketch a low resolution imageupscale
the low resolution image to a higher target resoultionimg2img
to refine the high resolution image⚪ How a progressive hires.fix works?
Just make the upscale & img2img step repeatible and progressive:
Easiest way to install it is to:
Manual install:
by Armit 2023/01/12