Merge branch 'Upscalers_SettingImprov' of https://github.com/GeorgLegato/infinite-zoom-automatic1111-webui into Upscalers_SettingImprov

pull/41/head
GeorgLegato 2023-04-19 07:34:23 +02:00
commit 0594e3bbf3
1 changed files with 13 additions and 7 deletions

View File

@ -142,7 +142,7 @@ def create_zoom(
upscale_do,
upscaler_name,
upscale_by,
progress=gr.Progress(),
progress=None,
):
for i in range(batchcount):
print(f"Batch {i+1}/{batchcount}")
@ -200,10 +200,15 @@ def create_zoom_single(
upscale_do,
upscaler_name,
upscale_by,
progress=gr.Progress(),
progress=None,
):
# try:
# if gr.Progress() is not None:
# progress = gr.Progress()
# progress(0, desc="Preparing Initial Image")
# except Exception:
# pass
fix_env_Path_ffprobe()
progress(0, desc="Preparing Initial Image")
prompts = {}
for x in prompts_array:
@ -270,10 +275,11 @@ def create_zoom_single(
for i in range(num_outpainting_steps):
print_out = "Outpaint step: " + str(i + 1) + " / " + str(num_outpainting_steps)
print(print_out)
progress(
((i + 1) / num_outpainting_steps),
desc=print_out,
)
# if progress is not None:
# progress(
# ((i + 1) / num_outpainting_steps),
# desc=print_out,
# )
prev_image_fix = current_image
prev_image = shrink_and_paste_on_blank(current_image, mask_width, mask_height)