We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff6f468 commit 9d4fdc4Copy full SHA for 9d4fdc4
modules/upscaler.py
@@ -57,7 +57,7 @@ def upscale(self, img: PIL.Image, scale, selected_model: str = None):
57
dest_h = int((img.height * scale) // 8 * 8)
58
59
for _ in range(3):
60
- if img.width >= dest_w and img.height >= dest_h:
+ if img.width >= dest_w and img.height >= dest_h and scale != 1:
61
break
62
63
if shared.state.interrupted:
0 commit comments