mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-11 03:31:38 -08:00
Interrupt after current generation
This commit is contained in:
parent
861cbd5636
commit
8aa13d5dce
7 changed files with 17 additions and 8 deletions
|
|
@ -95,7 +95,7 @@ class Script(scripts.Script):
|
|||
processed = processing.process_images(p)
|
||||
|
||||
# Generation cancelled.
|
||||
if state.interrupted:
|
||||
if state.interrupted or state.interrupted_next:
|
||||
break
|
||||
|
||||
if initial_seed is None:
|
||||
|
|
@ -122,8 +122,8 @@ class Script(scripts.Script):
|
|||
|
||||
p.inpainting_fill = original_inpainting_fill
|
||||
|
||||
if state.interrupted:
|
||||
break
|
||||
if state.interrupted or state.interrupted_next:
|
||||
break
|
||||
|
||||
if len(history) > 1:
|
||||
grid = images.image_grid(history, rows=1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue