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

fix x1 upscalers
This commit is contained in:
AUTOMATIC1111 2024-04-21 07:22:58 +03:00 committed by GitHub
commit a44ed231c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: