fix(api): restrict CLIP skip token to integers, allow negative LoRA and Inversion weights
This commit is contained in:
parent
e6d7d30225
commit
27bd10d2f7
|
@ -10,9 +10,9 @@ from diffusers import OnnxStableDiffusionPipeline
|
|||
logger = getLogger(__name__)
|
||||
|
||||
|
||||
CLIP_TOKEN = compile(r"\<clip:([-\w]+):([\.|\d]+)\>")
|
||||
INVERSION_TOKEN = compile(r"\<inversion:([-\w]+):([\.|\d]+)\>")
|
||||
LORA_TOKEN = compile(r"\<lora:([-\w]+):([\.|\d]+)\>")
|
||||
CLIP_TOKEN = compile(r"\<clip:([-\w]+):(\d+)\>")
|
||||
INVERSION_TOKEN = compile(r"\<inversion:([-\w]+):(-?[\.|\d]+)\>")
|
||||
LORA_TOKEN = compile(r"\<lora:([-\w]+):(-?[\.|\d]+)\>")
|
||||
MAX_TOKENS_PER_GROUP = 77
|
||||
PATTERN_RANGE = compile(r"(\w+)-{(\d+),(\d+)(?:,(\d+))?}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue