未验证 提交 a44ed231 编写于 作者: A AUTOMATIC1111 提交者: GitHub

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

fix x1 upscalers
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册