• Andrew Ryan's avatar
    Add latent upscale option to img2img · 358a8628
    Andrew Ryan authored
    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
    358a8628
Name
Last commit
Last update
.github Loading commit data...
embeddings Loading commit data...
extensions Loading commit data...
extensions-builtin Loading commit data...
javascript Loading commit data...
localizations Loading commit data...
models Loading commit data...
modules Loading commit data...
scripts Loading commit data...
test Loading commit data...
textual_inversion_templates Loading commit data...
.gitignore Loading commit data...
.pylintrc Loading commit data...
CODEOWNERS Loading commit data...
README.md Loading commit data...
artists.csv Loading commit data...
environment-wsl2.yaml Loading commit data...
launch.py Loading commit data...
requirements.txt Loading commit data...
requirements_versions.txt Loading commit data...
screenshot.png Loading commit data...
script.js Loading commit data...
style.css Loading commit data...
txt2img_Screenshot.png Loading commit data...
v1-inference.yaml Loading commit data...
webui-macos-env.sh Loading commit data...
webui-user.bat Loading commit data...
webui-user.sh Loading commit data...
webui.bat Loading commit data...
webui.py Loading commit data...
webui.sh Loading commit data...