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/processing.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/processing.py')
-rw-r--r-- | modules/processing.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py index d814d5ac..6805039c 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -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
|