aboutsummaryrefslogtreecommitdiff
path: root/test/advanced_features/__init__.py
diff options
context:
space:
mode:
authorAndrew Ryan <andrewryanchama@gmail.com>2022-12-08 07:09:09 +0000
committerAndrew Ryan <andrewryanchama@gmail.com>2022-12-08 07:09:09 +0000
commit358a8628f6abb4ca1e1bfddf122687c6fb13be0c (patch)
tree665cb5030ef0a8d1d1800e4f44c28806876c1cf4 /test/advanced_features/__init__.py
parent44c46f0ed395967cd3830dd481a2db759fda5b3b (diff)
Add latent upscale option to img2img
Recently, the option to do latent upscale was added to txt2img highres fix. This feature runs by scaling the latent sample of the image, and then running a second pass of img2img. But, in this edition of highres fix, the image and parameters cannot be changed between the first pass and second pass. We might want to do a fixup in img2img before doing the second pass, or might want to run the second pass at a different resolution. This change adds the option for img2img to perform its upscale in latent space, rather than image space, giving very similar results to highres fix with latent upscale. The result is not exactly the same because there is an additional latent -> decoder -> image -> encoder -> latent that won't happen in highres fix, but this conversion has relatively small losses
Diffstat (limited to 'test/advanced_features/__init__.py')
0 files changed, 0 insertions, 0 deletions