aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-06-01 18:35:14 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-06-01 18:35:14 +0000
commitb6af0a3809ea869fb180633f9affcae4b199ffcf (patch)
treeac47f34ac97c08e8f83fb2c90f6977459121e6b5 /modules/processing.py
parent20ae71faa8ef035c31aa3a410b707d792c8203a3 (diff)
parent8c3e64f4f6d67076031132b1628daba66dfa1121 (diff)
downloadstable-diffusion-webui-gfx803-b6af0a3809ea869fb180633f9affcae4b199ffcf.tar.gz
stable-diffusion-webui-gfx803-b6af0a3809ea869fb180633f9affcae4b199ffcf.tar.bz2
stable-diffusion-webui-gfx803-b6af0a3809ea869fb180633f9affcae4b199ffcf.zip
Merge branch 'release_candidate'
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 29a3743f..d22b353f 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):