mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
interrupt upscale
This commit is contained in:
parent
dfbdb5a135
commit
c321680b3d
2 changed files with 5 additions and 0 deletions
|
|
@ -60,6 +60,9 @@ class Upscaler:
|
|||
if img.width >= dest_w and img.height >= dest_h:
|
||||
break
|
||||
|
||||
if shared.state.interrupted:
|
||||
break
|
||||
|
||||
shape = (img.width, img.height)
|
||||
|
||||
img = self.do_upscale(img, selected_model)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue