mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-15 14:50:55 -08:00
fix x1 upscalers
This commit is contained in:
parent
ff6f4680c4
commit
9d4fdc45d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue