diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-31 15:47:24 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-31 19:54:51 +0000 |
commit | c63d46ceb8dd26d0ec3b27feedcffc3903358a0a (patch) | |
tree | f369bf30d2632778a692648a259f395beb5841f8 /modules/processing.py | |
parent | fae8bdfa48c23dd463ee0ee8811044a11d9677a6 (diff) | |
download | stable-diffusion-webui-gfx803-c63d46ceb8dd26d0ec3b27feedcffc3903358a0a.tar.gz stable-diffusion-webui-gfx803-c63d46ceb8dd26d0ec3b27feedcffc3903358a0a.tar.bz2 stable-diffusion-webui-gfx803-c63d46ceb8dd26d0ec3b27feedcffc3903358a0a.zip |
Merge pull request #10804 from AUTOMATIC1111/fix-xyz-clip
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 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):
|