aboutsummaryrefslogtreecommitdiff
path: root/modules/processing.py
diff options
context:
space:
mode:
authorTrung Ngo <codem01@gmail.com>2022-10-08 05:33:21 -0500
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-08 13:40:39 +0300
commit00117a07efbbe8482add12262a179326541467de (patch)
tree6a92d8bbbaa9b8a7e12eaf5cbb342b24917aac57 /modules/processing.py
parent786d9f63aaa4515df82eb2cf357ea92f3dae1e29 (diff)
check specifically for skipped
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 6805039c..3657fe69 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -357,7 +357,6 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
for n in range(p.n_iter):
if state.skipped:
state.skipped = False
- state.interrupted = False
if state.interrupted:
break
@@ -385,7 +384,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
with devices.autocast():
samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength)
- if state.interrupted:
+ if state.interrupted or state.skipped:
# if we are interruped, sample returns just noise
# use the image collected previously in sampler loop