aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-05-31 18:47:24 +0300
committerGitHub <noreply@github.com>2023-05-31 18:47:24 +0300
commit3e48f7d30c1d647fafeb9897cf74149903ad178a (patch)
treea9e2603bd9aad206a934432d6cad4f08f128fd58
parent0b0f60f9549f067791418c085ac2a306a147c8d3 (diff)
parent4a449375a20267035402eed5d93074c2f0a91bc8 (diff)
Merge pull request #10804 from AUTOMATIC1111/fix-xyz-clip
Fix get_conds_with_caching()
-rw-r--r--modules/processing.py5
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):