fix various float parsing errors

This commit is contained in:
AUTOMATIC 2022-10-05 23:52:05 +03:00
parent c26732fbee
commit f8e41a96bb

View file

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