diff --git a/scripts/infinite-zoom.py b/scripts/infinite-zoom.py index 3fac238..5f0cdbc 100644 --- a/scripts/infinite-zoom.py +++ b/scripts/infinite-zoom.py @@ -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)