diff options
author | unknown <mcgpapu@gmail.com> | 2022-12-10 08:30:31 +0000 |
---|---|---|
committer | unknown <mcgpapu@gmail.com> | 2022-12-10 08:30:31 +0000 |
commit | 4a3d05b657322a1a318d578d5bb6d0268b037082 (patch) | |
tree | ac2fd9a65bfdb56af4d9d33428ad2023a0342537 /modules | |
parent | 6387043fd2c3311d66690ff27d7da0e030b29cd8 (diff) | |
parent | 59c2dfe1e6a29dcf231fa9d894ac238887e40c39 (diff) | |
download | stable-diffusion-webui-gfx803-4a3d05b657322a1a318d578d5bb6d0268b037082.tar.gz stable-diffusion-webui-gfx803-4a3d05b657322a1a318d578d5bb6d0268b037082.tar.bz2 stable-diffusion-webui-gfx803-4a3d05b657322a1a318d578d5bb6d0268b037082.zip |
Merge branch 'master' of github.com:AUTOMATIC1111/stable-diffusion-webui
Diffstat (limited to 'modules')
-rw-r--r-- | modules/generation_parameters_copypaste.py | 3 | ||||
-rw-r--r-- | modules/shared.py | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/generation_parameters_copypaste.py b/modules/generation_parameters_copypaste.py index 53f34b0a..565e342d 100644 --- a/modules/generation_parameters_copypaste.py +++ b/modules/generation_parameters_copypaste.py @@ -122,8 +122,7 @@ def run_bind(): if send_generate_info and paste_fields[tab]["fields"] is not None:
if send_generate_info in paste_fields:
- paste_field_names = ['Prompt', 'Negative prompt', 'Steps', 'Face restoration', 'Size-1', 'Size-2'] + (["Seed"] if shared.opts.send_seed else [])
-
+ paste_field_names = ['Prompt', 'Negative prompt', 'Steps', 'Face restoration'] + (['Size-1', 'Size-2'] if shared.opts.send_size else []) + (["Seed"] if shared.opts.send_seed else [])
button.click(
fn=lambda *x: x,
inputs=[field for field, name in paste_fields[send_generate_info]["fields"] if name in paste_field_names],
diff --git a/modules/shared.py b/modules/shared.py index f53c3303..4223c017 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -396,6 +396,7 @@ options_templates.update(options_section(('ui', "User interface"), { "add_model_name_to_info": OptionInfo(False, "Add model name to generation information"),
"disable_weights_auto_swap": OptionInfo(False, "When reading generation parameters from text into UI (from PNG info or pasted text), do not change the selected model/checkpoint."),
"send_seed": OptionInfo(True, "Send seed when sending prompt or image to other interface"),
+ "send_size": OptionInfo(True, "Send size when sending prompt or image to another interface"),
"font": OptionInfo("", "Font for image grids that have text"),
"js_modal_lightbox": OptionInfo(True, "Enable full page image viewer"),
"js_modal_lightbox_initially_zoomed": OptionInfo(True, "Show images zoomed in by default in full page image viewer"),
|