diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-29 16:07:35 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-29 16:07:35 +0000 |
commit | 4a449375a20267035402eed5d93074c2f0a91bc8 (patch) | |
tree | 2cd1faf632b1d8e6fcd3e7803ec0fcebbe149416 /modules/processing.py | |
parent | 123641e4ec93c0cd99f7ab03f4f39ca8ae4b4cef (diff) | |
download | stable-diffusion-webui-gfx803-4a449375a20267035402eed5d93074c2f0a91bc8.tar.gz stable-diffusion-webui-gfx803-4a449375a20267035402eed5d93074c2f0a91bc8.tar.bz2 stable-diffusion-webui-gfx803-4a449375a20267035402eed5d93074c2f0a91bc8.zip |
fix get_conds_with_caching()
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/processing.py b/modules/processing.py index b75f2515..395c851f 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):
|