mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-03 14:21:38 -08:00
fix upscale logic
This commit is contained in:
parent
b2453d280a
commit
964fc13a99
1 changed files with 2 additions and 2 deletions
|
|
@ -56,8 +56,8 @@ class Upscaler:
|
|||
dest_w = int((img.width * scale) // 8 * 8)
|
||||
dest_h = int((img.height * scale) // 8 * 8)
|
||||
|
||||
for _ in range(3):
|
||||
if img.width >= dest_w and img.height >= dest_h and scale != 1:
|
||||
for i in range(3):
|
||||
if img.width >= dest_w and img.height >= dest_h and (i > 0 or scale != 1):
|
||||
break
|
||||
|
||||
if shared.state.interrupted:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue