aboutsummaryrefslogtreecommitdiff
path: root/modules/ui.py
diff options
context:
space:
mode:
authorFerdinand Weynschenk <flweynschenk@gmail.com>2023-06-20 13:33:36 +0200
committerFerdinand Weynschenk <flweynschenk@gmail.com>2023-06-20 13:33:36 +0200
commit928bd42da46683315c9f4498f6fbd5c59279da18 (patch)
treeb7e05655005e8e189bdbab451674fc620cb6f1cc /modules/ui.py
parentbaf6946e06249c5af9851c60171692c44ef633e0 (diff)
PNG info support at img2img batch
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 361f596e..a79b0e6c 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -751,6 +751,10 @@ def create_ui():
img2img_batch_input_dir = gr.Textbox(label="Input directory", **shared.hide_dirs, elem_id="img2img_batch_input_dir")
img2img_batch_output_dir = gr.Textbox(label="Output directory", **shared.hide_dirs, elem_id="img2img_batch_output_dir")
img2img_batch_inpaint_mask_dir = gr.Textbox(label="Inpaint batch mask directory (required for inpaint batch processing only)", **shared.hide_dirs, elem_id="img2img_batch_inpaint_mask_dir")
+ with gr.Accordion("PNG info"):
+ img2img_batch_use_png_info = gr.Checkbox(label="Append png info to prompts", **shared.hide_dirs, elem_id="img2img_batch_use_png_info")
+ img2img_batch_png_info_dir = gr.Textbox(label="PNG info directory", **shared.hide_dirs, placeholder="Leave empty to use input directory", elem_id="img2img_batch_png_info_dir")
+ img2img_batch_png_info_props = gr.CheckboxGroup(["Prompt", "Negative prompt", "Seed", "CFG scale", "Sampler", "Steps"], label="Parameters to take from png info", info="Prompts from png info will be appended to prompts set in ui.")
img2img_tabs = [tab_img2img, tab_sketch, tab_inpaint, tab_inpaint_color, tab_inpaint_upload, tab_batch]
@@ -943,6 +947,9 @@ def create_ui():
inpaint_full_res,
inpaint_full_res_padding,
inpainting_mask_invert,
+ img2img_batch_use_png_info,
+ img2img_batch_png_info_props,
+ img2img_batch_png_info_dir,
img2img_batch_input_dir,
img2img_batch_output_dir,
img2img_batch_inpaint_mask_dir,