Skip to content

Commit 9d4fdc4

Browse files
committed
fix x1 upscalers
1 parent ff6f468 commit 9d4fdc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/upscaler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def upscale(self, img: PIL.Image, scale, selected_model: str = None):
5757
dest_h = int((img.height * scale) // 8 * 8)
5858

5959
for _ in range(3):
60-
if img.width >= dest_w and img.height >= dest_h:
60+
if img.width >= dest_w and img.height >= dest_h and scale != 1:
6161
break
6262

6363
if shared.state.interrupted:

0 commit comments

Comments
 (0)