improve metadata parser

This commit is contained in:
Vladimir Mandic
2024-06-06 11:24:31 -04:00
parent 8a9c10e665
commit 9bc217644d
10 changed files with 162 additions and 220 deletions
-2
View File
@@ -130,8 +130,6 @@ def get_tokens(msg, prompt):
def encode_prompts(pipe, p, prompts: list, negative_prompts: list, steps: int, clip_skip: typing.Optional[int] = None):
if getattr(p, 'hidiffusion', False) is True:
cache.clear()
if 'StableDiffusion' not in pipe.__class__.__name__ and 'DemoFusion' not in pipe.__class__.__name__ and 'StableCascade' not in pipe.__class__.__name__:
shared.log.warning(f"Prompt parser not supported: {pipe.__class__.__name__}")
return