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

@@ -32,6 +32,10 @@ def process_batch(p, input_dir, output_dir, args):
for i, image in enumerate(images):
state.job = f"{i+1} out of {len(images)}"
if state.skipped:
state.skipped = False
state.interrupted = False
continue
if state.interrupted:
break