diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-05 06:24:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-05 06:24:26 +0000 |
commit | f879cac1e78fdd1a89919c5e0717a49d2b0e0fba (patch) | |
tree | 91b0ca7ade858064e16106b2bca8386623a3d060 /modules/shared.py | |
parent | ad510b2cd312b554f641084a375038ead4c5149c (diff) | |
parent | b85ec2b9b66492ff9bf3d40a4d9b424390067f0f (diff) | |
download | stable-diffusion-webui-gfx803-f879cac1e78fdd1a89919c5e0717a49d2b0e0fba.tar.gz stable-diffusion-webui-gfx803-f879cac1e78fdd1a89919c5e0717a49d2b0e0fba.tar.bz2 stable-diffusion-webui-gfx803-f879cac1e78fdd1a89919c5e0717a49d2b0e0fba.zip |
Merge pull request #12311 from AUTOMATIC1111/efficient-vae-methods
Add TAESD(or more) options for all the VAE encode/decode operation
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index 8245250a..516ad7e8 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -435,6 +435,8 @@ options_templates.update(options_section(('sd', "Stable Diffusion"), { "upcast_attn": OptionInfo(False, "Upcast cross attention layer to float32"),
"auto_vae_precision": OptionInfo(True, "Automaticlly revert VAE to 32-bit floats").info("triggers when a tensor with NaNs is produced in VAE; disabling the option in this case will result in a black square image"),
"randn_source": OptionInfo("GPU", "Random number generator source.", gr.Radio, {"choices": ["GPU", "CPU", "NV"]}).info("changes seeds drastically; use CPU to produce the same picture across different videocard vendors; use NV to produce same picture as on NVidia videocards"),
+ "sd_vae_encode_method": OptionInfo("Full", "VAE type for encode", gr.Radio, {"choices": ["Full", "TAESD"]}).info("method to encode image to latent (use in img2img, hires-fix or inpaint mask)"),
+ "sd_vae_decode_method": OptionInfo("Full", "VAE type for decode", gr.Radio, {"choices": ["Full", "TAESD"]}).info("method to decode latent to image"),
}))
options_templates.update(options_section(('sdxl', "Stable Diffusion XL"), {
|