Browse Source

Merge pull request #15555 from light-and-ray/fix_x1_upscalers

fix x1 upscalers
AUTOMATIC1111 1 year ago
parent
commit
a44ed231c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/upscaler.py

+ 1 - 1
modules/upscaler.py

@@ -57,7 +57,7 @@ class Upscaler:
         dest_h = int((img.height * scale) // 8 * 8)
         dest_h = int((img.height * scale) // 8 * 8)
 
 
         for _ in range(3):
         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
                 break
 
 
             if shared.state.interrupted:
             if shared.state.interrupted: