mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 03:10:21 +00:00
fix bugs in the PR
This commit is contained in:
@@ -60,7 +60,7 @@ class Upscaler:
|
||||
break
|
||||
img = self.do_upscale(img, selected_model)
|
||||
if img.width != dest_w or img.height != dest_h:
|
||||
img = img.resize(dest_w, dest_h, resample=LANCZOS)
|
||||
img = img.resize((dest_w, dest_h), resample=LANCZOS)
|
||||
|
||||
return img
|
||||
|
||||
|
Reference in New Issue
Block a user