mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
fix prompt scheduling
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user