Skip to content

Commit

Permalink
fix x1 upscalers
Browse files Browse the repository at this point in the history
  • Loading branch information
light-and-ray committed Apr 17, 2024
1 parent ff6f468 commit 9d4fdc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/upscaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def upscale(self, img: PIL.Image, scale, selected_model: str = None):
dest_h = int((img.height * scale) // 8 * 8)

for _ in range(3):
if img.width >= dest_w and img.height >= dest_h:
if img.width >= dest_w and img.height >= dest_h and scale != 1:
break

if shared.state.interrupted:
Expand Down

0 comments on commit 9d4fdc4

Please sign in to comment.