Merge pull request #11927 from ljleb/fix-AND

Fix composable diffusion weight parsing
This commit is contained in:
AUTOMATIC1111 2023-07-22 16:36:40 +03:00
parent 704628b903
commit cad87bf4e3
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ def get_learned_conditioning(model, prompts: SdConditioning | list[str], steps):
re_AND = re.compile(r"\bAND\b") re_AND = re.compile(r"\bAND\b")
re_weight = re.compile(r"^(.*?)(?:\s*:\s*([-+]?(?:\d+\.?|\d*\.\d+)))?\s*$") re_weight = re.compile(r"^((?:\s|.)*?)(?:\s*:\s*([-+]?(?:\d+\.?|\d*\.\d+)))?\s*$")
def get_multicond_prompt_list(prompts: SdConditioning | list[str]): def get_multicond_prompt_list(prompts: SdConditioning | list[str]):