Skip to content

Commit f5994e8

Browse files
authored
Cleanup extras checkbox infotext paste check
1 parent ac8dfd9 commit f5994e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ui.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ def create_ui():
585585
(width, "Size-1"),
586586
(height, "Size-2"),
587587
(batch_size, "Batch size"),
588+
(seed_checkbox, lambda d: "Variation seed" in d or "Seed resize from-1" in d),
588589
(subseed, "Variation seed"),
589590
(subseed_strength, "Variation seed strength"),
590591
(seed_resize_from_w, "Seed resize from-1"),
@@ -603,7 +604,6 @@ def create_ui():
603604
(hr_prompt, "Hires prompt"),
604605
(hr_negative_prompt, "Hires negative prompt"),
605606
(hr_prompts_container, lambda d: gr.update(visible=True) if d.get("Hires prompt", "") != "" or d.get("Hires negative prompt", "") != "" else gr.update()),
606-
(seed_checkbox, lambda d: any(x in ["Variation seed", "Variation seed strength", "Seed resize from-1", "Seed resize from-2"] for x in d)),
607607
*scripts.scripts_txt2img.infotext_fields
608608
]
609609
parameters_copypaste.add_paste_fields("txt2img", None, txt2img_paste_fields, override_settings)
@@ -973,14 +973,14 @@ def select_img2img_tab(tab):
973973
(width, "Size-1"),
974974
(height, "Size-2"),
975975
(batch_size, "Batch size"),
976+
(seed_checkbox, lambda d: "Variation seed" in d or "Seed resize from-1" in d),
976977
(subseed, "Variation seed"),
977978
(subseed_strength, "Variation seed strength"),
978979
(seed_resize_from_w, "Seed resize from-1"),
979980
(seed_resize_from_h, "Seed resize from-2"),
980981
(toprow.ui_styles.dropdown, lambda d: d["Styles array"] if isinstance(d.get("Styles array"), list) else gr.update()),
981982
(denoising_strength, "Denoising strength"),
982983
(mask_blur, "Mask blur"),
983-
(seed_checkbox, lambda d: any(x in ["Variation seed", "Variation seed strength", "Seed resize from-1", "Seed resize from-2"] for x in d)),
984984
*scripts.scripts_img2img.infotext_fields
985985
]
986986
parameters_copypaste.add_paste_fields("img2img", init_img, img2img_paste_fields, override_settings)

0 commit comments

Comments
 (0)