Update probe.py

Minor case-sensitive typo. `ModelType.Lora` should be `ModelType.LoRA`
This commit is contained in:
skunkworxdark 2024-03-22 12:38:52 +00:00 committed by Kent Keirsey
parent cf0c7d66ed
commit 37fd57d4d9

View File

@ -227,7 +227,7 @@ class ModelProbe(object):
elif any(key.startswith(v) for v in {"lora_te_", "lora_unet_"}):
return ModelType.LoRA
elif any(key.endswith(v) for v in {"to_k_lora.up.weight", "to_q_lora.down.weight"}):
return ModelType.Lora
return ModelType.LoRA
elif any(key.startswith(v) for v in {"controlnet", "control_model", "input_blocks"}):
return ModelType.ControlNet
elif key in {"emb_params", "string_to_param"}: