diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-15 15:05:42 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-15 15:05:42 +0000 |
commit | 0fde1f3eac11cca666560ce60ea60ea3365052a5 (patch) | |
tree | 2fbcac29ca3b108f4e3a7b0891275438e4c61aec | |
parent | cde49dcbe60baac669db71ba3a76838f899c4009 (diff) | |
download | stable-diffusion-webui-gfx803-0fde1f3eac11cca666560ce60ea60ea3365052a5.tar.gz stable-diffusion-webui-gfx803-0fde1f3eac11cca666560ce60ea60ea3365052a5.tar.bz2 stable-diffusion-webui-gfx803-0fde1f3eac11cca666560ce60ea60ea3365052a5.zip |
oh hey i broke batches with this
-rw-r--r-- | modules/prompt_parser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/prompt_parser.py b/modules/prompt_parser.py index e918fabf..0835f692 100644 --- a/modules/prompt_parser.py +++ b/modules/prompt_parser.py @@ -34,6 +34,7 @@ def get_learned_conditioning_prompt_schedules(prompts, steps): cached = cache.get(prompt, None)
if cached is not None:
res.append(cached)
+ continue
for m in re_prompt.finditer(prompt):
plaintext = m.group(1) if m.group(5) is None else m.group(5)
@@ -97,6 +98,7 @@ def get_learned_conditioning(prompts, steps): cached = cache.get(prompt, None)
if cached is not None:
res.append(cached)
+ continue
texts = [x[1] for x in prompt_schedule]
conds = shared.sd_model.get_learned_conditioning(texts)
|