fix prompt scheduling

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-04-08 07:46:22 -04:00
parent 748bdbf437
commit b5e421018b
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -85,8 +85,12 @@ class PromptEmbedder:
def checkcache(self, p):
if shared.opts.sd_textencoder_cache_size == 0:
return False
if self.scheduled_prompt:
debug("Prompt cache: scheduled prompt")
cache.clear()
return False
if self.attention != shared.opts.prompt_attention:
debug(f"Prompt change: parser={shared.opts.prompt_attention}")
debug(f"Prompt cache: parser={shared.opts.prompt_attention} changed")
cache.clear()
return False
+1 -1
View File
@@ -52,7 +52,7 @@ numba==0.59.1
protobuf==4.25.3
pytorch_lightning==1.9.4
tokenizers==0.21.1
transformers==4.50.3
transformers==4.51.1
urllib3==1.26.19
Pillow==10.4.0
timm==0.9.16