mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-26 19:09:58 +00:00
Interrupt after current generation
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -688,7 +688,7 @@ class Script(scripts.Script):
|
||||
grid_infotext = [None] * (1 + len(zs))
|
||||
|
||||
def cell(x, y, z, ix, iy, iz):
|
||||
if shared.state.interrupted:
|
||||
if shared.state.interrupted or state.interrupted_next:
|
||||
return Processed(p, [], p.seed, "")
|
||||
|
||||
pc = copy(p)
|
||||
|
||||
Reference in New Issue
Block a user