diff options
author | hitomi <huahuohe@foxmail.com> | 2022-12-25 12:49:25 +0000 |
---|---|---|
committer | hitomi <huahuohe@foxmail.com> | 2022-12-25 12:49:25 +0000 |
commit | 893933e05ad267778111b4fad6d1ecb80937afdf (patch) | |
tree | e4cabcc93d625f903dcba2504941681b82b38dab /modules/shared.py | |
parent | c6f347b81f584b6c0d44af7a209983284dbb52d2 (diff) | |
download | stable-diffusion-webui-gfx803-893933e05ad267778111b4fad6d1ecb80937afdf.tar.gz stable-diffusion-webui-gfx803-893933e05ad267778111b4fad6d1ecb80937afdf.tar.bz2 stable-diffusion-webui-gfx803-893933e05ad267778111b4fad6d1ecb80937afdf.zip |
Add memory cache for VAE weights
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index d4ddeea0..671d30e1 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -356,6 +356,7 @@ options_templates.update(options_section(('training', "Training"), { options_templates.update(options_section(('sd', "Stable Diffusion"), {
"sd_model_checkpoint": OptionInfo(None, "Stable Diffusion checkpoint", gr.Dropdown, lambda: {"choices": list_checkpoint_tiles()}, refresh=refresh_checkpoints),
"sd_checkpoint_cache": OptionInfo(0, "Checkpoints to cache in RAM", gr.Slider, {"minimum": 0, "maximum": 10, "step": 1}),
+ "sd_vae_checkpoint_cache": OptionInfo(0, "VAE Checkpoints to cache in RAM", gr.Slider, {"minimum": 0, "maximum": 10, "step": 1}),
"sd_vae": OptionInfo("auto", "SD VAE", gr.Dropdown, lambda: {"choices": sd_vae.vae_list}, refresh=sd_vae.refresh_vae_list),
"sd_vae_as_default": OptionInfo(False, "Ignore selected VAE for stable diffusion checkpoints that have their own .vae.pt next to them"),
"sd_hypernetwork": OptionInfo("None", "Hypernetwork", gr.Dropdown, lambda: {"choices": ["None"] + [x for x in hypernetworks.keys()]}, refresh=reload_hypernetworks),
|