diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-17 20:42:01 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-17 20:42:01 +0000 |
commit | 61ee563df9112ae04e547622b4c5e9fd4bc9d978 (patch) | |
tree | 07d3f5040c0a300878cf045530972ed9aeb526cc /modules/shared.py | |
parent | e5dd4b4ebf817d35285095baa2246dfc5647186e (diff) | |
download | stable-diffusion-webui-gfx803-61ee563df9112ae04e547622b4c5e9fd4bc9d978.tar.gz stable-diffusion-webui-gfx803-61ee563df9112ae04e547622b4c5e9fd4bc9d978.tar.bz2 stable-diffusion-webui-gfx803-61ee563df9112ae04e547622b4c5e9fd4bc9d978.zip |
option to specify editor height for img2img
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 332cf1cf..9e9e8cd4 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -460,6 +460,7 @@ options_templates.update(options_section(('extra_networks', "Extra Networks"), { options_templates.update(options_section(('ui', "User interface"), {
"localization": OptionInfo("None", "Localization", gr.Dropdown, lambda: {"choices": ["None"] + list(localization.localizations.keys())}, refresh=lambda: localization.list_localizations(cmd_opts.localizations_dir)).needs_restart(),
"gradio_theme": OptionInfo("Default", "Gradio theme", ui_components.DropdownEditable, lambda: {"choices": ["Default"] + gradio_hf_hub_themes}).needs_restart(),
+ "img2img_editor_height": OptionInfo(720, "img2img: height of image editor", gr.Slider, {"minimum": 80, "maximum": 1600, "step": 1}).info("in pixels").needs_restart(),
"return_grid": OptionInfo(True, "Show grid in results for web"),
"return_mask": OptionInfo(False, "For inpainting, include the greyscale mask in results for web"),
"return_mask_composite": OptionInfo(False, "For inpainting, include masked composite in results for web"),
|