From a8a58dbac7b205ae90664c3b249d60e4baa2855c Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Mon, 5 Sep 2022 03:25:37 +0300 Subject: re-integrated tiling option as a UI element --- modules/ui.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/ui.py') diff --git a/modules/ui.py b/modules/ui.py index 4119369e..a2f1124e 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -155,6 +155,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): with gr.Row(): use_gfpgan = gr.Checkbox(label='GFPGAN', value=False, visible=gfpgan.have_gfpgan) + tiling = gr.Checkbox(label='Tiling', value=False) with gr.Row(): batch_count = gr.Slider(minimum=1, maximum=cmd_opts.max_batch_count, step=1, label='Batch count', value=1) @@ -195,6 +196,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): steps, sampler_index, use_gfpgan, + tiling, batch_count, batch_size, cfg_scale, @@ -256,6 +258,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): with gr.Row(): use_gfpgan = gr.Checkbox(label='GFPGAN', value=False, visible=gfpgan.have_gfpgan) + tiling = gr.Checkbox(label='Tiling', value=False) sd_upscale_overlap = gr.Slider(minimum=0, maximum=256, step=16, label='Tile overlap', value=64, visible=False) with gr.Row(): @@ -339,6 +342,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): mask_blur, inpainting_fill, use_gfpgan, + tiling, switch_mode, batch_count, batch_size, -- cgit v1.2.1