mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-22 12:30:53 -08:00
Add button to skip the current iteration
This commit is contained in:
parent
45cc0ce3c4
commit
786d9f63aa
8 changed files with 49 additions and 8 deletions
|
|
@ -355,6 +355,10 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
|
|||
state.job_count = p.n_iter
|
||||
|
||||
for n in range(p.n_iter):
|
||||
if state.skipped:
|
||||
state.skipped = False
|
||||
state.interrupted = False
|
||||
|
||||
if state.interrupted:
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue