Skip to content

checkpoint. Make sure all LoRA param names contain 'lora' substring. #13717

@xalteropsx

Description

@xalteropsx

Describe the bug

File "....python11\Lib\site-packages\diffusers\loaders\lora_pipeline.py", line 645, in load_lora_weights
    raise ValueError("Invalid LoRA checkpoint. Make sure all LoRA param names contain `'lora'` substring.")
ValueError: Invalid LoRA checkpoint. Make sure all LoRA param names contain `'lora'` substring.

arrise from

Reproduction

pipe.load_lora_weights("D:/santa/lora/add-detail-xl.safetensors",adapter_name='lora-add-detail-xl')
pipe.load_lora_weights("D:/santa/lora/detailed_notrigger.safetensors",adapter_name='lora-detailed_notrigger')
pipe.set_adapters(['lora-add-detail-xl','lora-detailed_notrigger'], [0.5,0.5])

error orginate from detailed_notrigger

Logs

System Info

python 3.11 diffuser 0.37.1

Who can help?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingloraneeds-code-exampleWaiting for relevant code example to be providedpipelines

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions