From 0fde1f3eac11cca666560ce60ea60ea3365052a5 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Thu, 15 Sep 2022 18:05:42 +0300 Subject: [PATCH] oh hey i broke batches with this --- modules/prompt_parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/prompt_parser.py b/modules/prompt_parser.py index e918fabfa..0835f692c 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) -- GitLab