add interrupt to processing

This commit is contained in:
Vladimir Mandic
2023-05-14 12:13:44 -04:00
parent 77eae443b5
commit 85d67d6331
9 changed files with 23 additions and 18 deletions
+1
View File
@@ -603,6 +603,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if state.skipped:
state.skipped = False
if state.interrupted:
shared.log.debug(f'Process interrupted: {n}/{p.n_iter}')
break
prompts = p.all_prompts[n * p.batch_size:(n + 1) * p.batch_size]
negative_prompts = p.all_negative_prompts[n * p.batch_size:(n + 1) * p.batch_size]