fix: correctly apply LoRA weight for legacy schema

This commit is contained in:
Manuel Schmid 2024-03-23 16:22:24 +01:00
parent 2f52cab75d
commit 3f972c2fbc
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B

View File

@ -417,7 +417,7 @@ class A1111MetadataParser(MetadataParser):
for li, lora in enumerate(lora_data.split(', ')):
lora_split = lora.split(': ')
lora_name = lora_split[0]
lora_weight = lora_split[1]
lora_weight = lora_split[2] if len(lora_split) == 3 else lora_split[1]
for filename in lora_filenames:
path = Path(filename)
if lora_name == path.stem: