diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-07 05:07:09 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-07 05:07:20 +0000 |
commit | c96e4750d895a47290dc7f96e030197069c75fa4 (patch) | |
tree | 15bf9a0ad4629ae0c56349f2d1f629ab79c2d134 /webui.py | |
parent | 5a38a9c0eea7f8c77585fcb97c51bf0e103e706e (diff) | |
download | stable-diffusion-webui-gfx803-c96e4750d895a47290dc7f96e030197069c75fa4.tar.gz stable-diffusion-webui-gfx803-c96e4750d895a47290dc7f96e030197069c75fa4.tar.bz2 stable-diffusion-webui-gfx803-c96e4750d895a47290dc7f96e030197069c75fa4.zip |
SD VAE rework 2
- the setting for preferring opts.sd_vae has been inverted and reworded
- resolve_vae function made easier to read and now returns an object rather than a tuple
- if the checkbox for overriding per-model preferences is checked, opts.sd_vae overrides checkpoint user metadata
- changing VAE in user metadata for currently loaded model immediately applies the selection
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -211,7 +211,7 @@ def configure_sigint_handler(): def configure_opts_onchange():
shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights()), call=False)
shared.opts.onchange("sd_vae", wrap_queued_call(lambda: modules.sd_vae.reload_vae_weights()), call=False)
- shared.opts.onchange("sd_vae_as_default", wrap_queued_call(lambda: modules.sd_vae.reload_vae_weights()), call=False)
+ shared.opts.onchange("sd_vae_overrides_per_model_preferences", wrap_queued_call(lambda: modules.sd_vae.reload_vae_weights()), call=False)
shared.opts.onchange("temp_dir", ui_tempdir.on_tmpdir_changed)
shared.opts.onchange("gradio_theme", shared.reload_gradio_theme)
shared.opts.onchange("cross_attention_optimization", wrap_queued_call(lambda: modules.sd_hijack.model_hijack.redo_hijack(shared.sd_model)), call=False)
|