aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-05-31 16:15:21 +0000
committerGitHub <noreply@github.com>2023-05-31 16:15:21 +0000
commit52b8752e6201e24c783f674f8dc0681027e10ea9 (patch)
tree30470f64d84cadc4140023c0bf34c35bb68f79b0 /modules/processing.py
parent00dfe27f59727407c5b408a80ff2a262934df495 (diff)
parent78a602ae8c006077ca93913576335a3a33dba7cb (diff)
downloadstable-diffusion-webui-gfx803-52b8752e6201e24c783f674f8dc0681027e10ea9.tar.gz
stable-diffusion-webui-gfx803-52b8752e6201e24c783f674f8dc0681027e10ea9.tar.bz2
stable-diffusion-webui-gfx803-52b8752e6201e24c783f674f8dc0681027e10ea9.zip
Merge branch 'dev' into report-error
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 5c9bcce8..f628d88b 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -321,14 +321,13 @@ class StableDiffusionProcessing:
have been used before. The second element is where the previously
computed result is stored.
"""
-
- if cache[0] is not None and (required_prompts, steps) == cache[0]:
+ if cache[0] is not None and (required_prompts, steps, opts.CLIP_stop_at_last_layers, shared.sd_model.sd_checkpoint_info) == cache[0]:
return cache[1]
with devices.autocast():
cache[1] = function(shared.sd_model, required_prompts, steps)
- cache[0] = (required_prompts, steps)
+ cache[0] = (required_prompts, steps, opts.CLIP_stop_at_last_layers, shared.sd_model.sd_checkpoint_info)
return cache[1]
def setup_conds(self):