Add button to skip the current iteration

This commit is contained in:
Trung Ngo
2022-10-04 22:56:30 -05:00
committed by AUTOMATIC1111
parent 45cc0ce3c4
commit 786d9f63aa
8 changed files with 49 additions and 8 deletions

View File

@@ -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