diff options
author | papuSpartan <30642826+papuSpartan@users.noreply.github.com> | 2023-05-13 15:26:09 +0000 |
---|---|---|
committer | papuSpartan <30642826+papuSpartan@users.noreply.github.com> | 2023-05-13 15:26:09 +0000 |
commit | 917faa5325371e51d68f7d6f7b15ea4466bd5adf (patch) | |
tree | 483a7b47bad98ce85705d259a691c32f70099aa3 | |
parent | ac83627a31daac06f4d48b0e7db223ef807fe8e5 (diff) | |
download | stable-diffusion-webui-gfx803-917faa5325371e51d68f7d6f7b15ea4466bd5adf.tar.gz stable-diffusion-webui-gfx803-917faa5325371e51d68f7d6f7b15ea4466bd5adf.tar.bz2 stable-diffusion-webui-gfx803-917faa5325371e51d68f7d6f7b15ea4466bd5adf.zip |
move to stable-diffusion tab
-rw-r--r-- | modules/shared.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/modules/shared.py b/modules/shared.py index 0d96c14c..e49e9b74 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -350,6 +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})
}))
options_templates.update(options_section(('compatibility', "Compatibility"), {
@@ -458,16 +460,6 @@ options_templates.update(options_section((None, "Hidden options"), { "sd_checkpoint_hash": OptionInfo("", "SHA256 hash of the current checkpoint"),
}))
-options_templates.update(options_section(('token_merging', 'Token Merging'), {
- "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}
- )
-}))
options_templates.update()
|