Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#15555 from light-and-ray/fix_x1_upsc…
Browse files Browse the repository at this point in the history
…alers

fix x1 upscalers
  • Loading branch information
AUTOMATIC1111 committed Apr 21, 2024
2 parents daae178 + 9d4fdc4 commit a44ed23
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 a44ed23

Please sign in to comment.