diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-14 05:30:37 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-14 05:30:37 +0000 |
commit | 2cfaffb239bb2b99aab06352f8c101e48e48dec9 (patch) | |
tree | 32ccb998731621eabadedfbdb9bb248e1831437d /modules | |
parent | 7f6ef764b945c9a63200007a8aed7595fbe8439d (diff) | |
download | stable-diffusion-webui-gfx803-2cfaffb239bb2b99aab06352f8c101e48e48dec9.tar.gz stable-diffusion-webui-gfx803-2cfaffb239bb2b99aab06352f8c101e48e48dec9.tar.bz2 stable-diffusion-webui-gfx803-2cfaffb239bb2b99aab06352f8c101e48e48dec9.zip |
updates for #9256
Diffstat (limited to 'modules')
-rw-r--r-- | modules/generation_parameters_copypaste.py | 2 | ||||
-rw-r--r-- | modules/shared.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/generation_parameters_copypaste.py b/modules/generation_parameters_copypaste.py index a0a98bbc..f1a2204c 100644 --- a/modules/generation_parameters_copypaste.py +++ b/modules/generation_parameters_copypaste.py @@ -311,7 +311,7 @@ infotext_to_setting_name_mapping = [ ('Token merging ratio', 'token_merging_ratio'),
('Token merging ratio hr', 'token_merging_ratio_hr'),
('RNG', 'randn_source'),
- ('NGMS', 's_min_uncond')
+ ('NGMS', 's_min_uncond'),
]
diff --git a/modules/shared.py b/modules/shared.py index a5e8d0bd..7ec9967e 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -350,8 +350,8 @@ options_templates.update(options_section(('sd', "Stable Diffusion"), { "CLIP_stop_at_last_layers": OptionInfo(1, "Clip skip", gr.Slider, {"minimum": 1, "maximum": 12, "step": 1}),
"upcast_attn": OptionInfo(False, "Upcast cross attention layer to float32"),
"randn_source": OptionInfo("GPU", "Random number generator source. Changes seeds drastically. Use CPU to produce the same picture across different vidocard vendors.", gr.Radio, {"choices": ["GPU", "CPU"]}),
- "token_merging_ratio_hr": OptionInfo(0, "Merging Ratio (high-res pass)", gr.Slider, {"minimum": 0, "maximum": 0.9, "step": 0.1}),
- "token_merging_ratio": OptionInfo(0, "Merging Ratio", gr.Slider, {"minimum": 0, "maximum": 0.9, "step": 0.1})
+ "token_merging_ratio": OptionInfo(0.0, "Token merging ratio", gr.Slider, {"minimum": 0.0, "maximum": 0.9, "step": 0.1}),
+ "token_merging_ratio_hr": OptionInfo(0.0, "Togen merging ratio for high-res pass", gr.Slider, {"minimum": 0.0, "maximum": 0.9, "step": 0.1}),
}))
options_templates.update(options_section(('compatibility', "Compatibility"), {
|