aboutsummaryrefslogtreecommitdiff
path: root/modules/upscaler.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-30 10:38:48 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-30 10:38:48 +0300
commita5e7b371d61bc063062b636236f1f37c264f4115 (patch)
tree297c2c3696ae8ebfa196e47f567eac7e6b7fae01 /modules/upscaler.py
parent8f1b3153180da3b626529a7d077eac63d4b2e5e4 (diff)
fix the bug with broken rescaling in PR
Diffstat (limited to 'modules/upscaler.py')
-rw-r--r--modules/upscaler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upscaler.py b/modules/upscaler.py
index 7b51844f..d9d7c5e2 100644
--- a/modules/upscaler.py
+++ b/modules/upscaler.py
@@ -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