mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 05:12:35 +00:00
repair broken highres fix #1109
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user