diff options
author | Trung Ngo <codem01@gmail.com> | 2022-10-05 03:56:30 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-08 10:40:39 +0000 |
commit | 786d9f63aaa4515df82eb2cf357ea92f3dae1e29 (patch) | |
tree | 01241c36c8ae98e3dcf993363ff5310fa68b3712 /modules/img2img.py | |
parent | 45cc0ce3c4616180b92dae37e5a89673bb145fa7 (diff) | |
download | stable-diffusion-webui-gfx803-786d9f63aaa4515df82eb2cf357ea92f3dae1e29.tar.gz stable-diffusion-webui-gfx803-786d9f63aaa4515df82eb2cf357ea92f3dae1e29.tar.bz2 stable-diffusion-webui-gfx803-786d9f63aaa4515df82eb2cf357ea92f3dae1e29.zip |
Add button to skip the current iteration
Diffstat (limited to 'modules/img2img.py')
-rw-r--r-- | modules/img2img.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/img2img.py b/modules/img2img.py index da212d72..e60b7e0f 100644 --- a/modules/img2img.py +++ b/modules/img2img.py @@ -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
|