diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-12-31 09:22:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-31 09:22:59 +0000 |
commit | 3d8256e40c56d3a1209d53f15c23bc46491762b2 (patch) | |
tree | 7e16432a201291130322bd0b61e8e796f9679360 /modules/shared.py | |
parent | d81636a09155c7a693fc837514344f3b1b77e4db (diff) | |
parent | 893933e05ad267778111b4fad6d1ecb80937afdf (diff) | |
download | stable-diffusion-webui-gfx803-3d8256e40c56d3a1209d53f15c23bc46491762b2.tar.gz stable-diffusion-webui-gfx803-3d8256e40c56d3a1209d53f15c23bc46491762b2.tar.bz2 stable-diffusion-webui-gfx803-3d8256e40c56d3a1209d53f15c23bc46491762b2.zip |
Merge pull request #6017 from hitomi/master
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 9a13fb60..c494a3b9 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),
|