re-integrated tiling option as a UI element

This commit is contained in:
AUTOMATIC
2022-09-05 03:25:37 +03:00
parent f91d0c3d19
commit a8a58dbac7
7 changed files with 34 additions and 11 deletions

View File

@@ -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,