mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
fix the bug with broken rescaling in PR
This commit is contained in:
parent
8f1b315318
commit
a5e7b371d6
2 changed files with 12 additions and 4 deletions
|
|
@ -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((int(dest_w), int(dest_h)), resample=LANCZOS)
|
||||
|
||||
return img
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue