diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-20 19:29:51 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-20 19:29:51 +0000 |
commit | 05e6fc9aa944dd6e3ee01eae0817f8b51134ffab (patch) | |
tree | ee6c49a0f4f3f33ac8a9dac8938138f68a867f4a /modules/shared.py | |
parent | cc6c0fc70a8fee1ea01a5e1a63d4edd645b26687 (diff) | |
parent | 2140bd1c108dd17bbf8601b10da7865ed1ac1607 (diff) | |
download | stable-diffusion-webui-gfx803-05e6fc9aa944dd6e3ee01eae0817f8b51134ffab.tar.gz stable-diffusion-webui-gfx803-05e6fc9aa944dd6e3ee01eae0817f8b51134ffab.tar.bz2 stable-diffusion-webui-gfx803-05e6fc9aa944dd6e3ee01eae0817f8b51134ffab.zip |
Merge branch 'ui-selection-for-cross-attention-optimization' into dev
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 e53b1e11..3099d1d2 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -418,6 +418,7 @@ options_templates.update(options_section(('sd', "Stable Diffusion"), { }))
options_templates.update(options_section(('optimizations', "Optimizations"), {
+ "cross_attention_optimization": OptionInfo("Automatic", "Cross attention optimization", gr.Dropdown, lambda: {"choices": shared_items.cross_attention_optimizations()}),
"s_min_uncond": OptionInfo(0, "Negative Guidance minimum sigma", gr.Slider, {"minimum": 0.0, "maximum": 4.0, "step": 0.01}).link("PR", "https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/9177").info("skip negative prompt for some steps when the image is almost ready; 0=disable, higher=faster"),
"token_merging_ratio": OptionInfo(0.0, "Token merging ratio", gr.Slider, {"minimum": 0.0, "maximum": 0.9, "step": 0.1}).link("PR", "https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/9256").info("0=disable, higher=faster"),
"token_merging_ratio_img2img": OptionInfo(0.0, "Token merging ratio for img2img", gr.Slider, {"minimum": 0.0, "maximum": 0.9, "step": 0.1}).info("only applies if non-zero and overrides above"),
|