repair broken highres fix #1109

This commit is contained in:
AUTOMATIC
2022-09-30 12:26:41 +03:00
parent 828d6cce72
commit 9a54077d4d
2 changed files with 2 additions and 3 deletions

View File

@@ -218,7 +218,7 @@ def resize_image(resize_mode, im, width, height):
upscaler = upscalers[0]
scale = max(w / im.width, h / im.height)
upscaled = upscaler.scaler.upscale(im, scale)
upscaled = upscaler.scaler.upscale(im, scale, upscaler.data_path)
if upscaled.width != w or upscaled.height != h:
upscaled = im.resize((w, h), resample=LANCZOS)