Эх сурвалжийг харах

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

fix x1 upscalers
AUTOMATIC1111 1 жил өмнө
parent
commit
a44ed231c2
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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)
 
         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: