back to bit better

optimize_upscale
GeorgLegato 2023-04-26 21:58:03 +02:00
parent cab2d1d527
commit cfa9eae246
1 changed files with 1 additions and 7 deletions

View File

@ -103,12 +103,6 @@ def create_zoom_single(
upscale_by,
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()
prompts = {}
@ -300,7 +294,7 @@ def create_zoom_single(
)
)
## WHY?, should be end size? interpol_image = interpol_image.resize((width, height))
interpol_image = interpol_image.resize((widthInterp, heightInterp))
# paste the higher resolution previous image in the middle to avoid drop in quality caused by zooming
interpol_width2 = round(