Skip to content

lcm lora can't load #7

@hanggun

Description

@hanggun

Dear author, thank you for your valuable work. I have encounter the problem of loading LCM lora. Can you see why the Lcm lora can not be loaded into the RORem mixed model?
I used following code.

pipe_edit = AutoPipelineForInpainting.from_pretrained(
        '/home/workspace/volume3/ps/pretrained_model/sd/stable-diffusion-xl-1.0-inpainting-0.1/',
        torch_dtype=torch.float16, 
        variant="fp16"
    )
unet = UNet2DConditionModel.from_pretrained('/home/workspace/volume3/ps/pretrained_model/RORem/').to("cuda",dtype=torch.float16)
pipe_edit.unet = unet
pipe_edit.scheduler = LCMScheduler.from_config(pipe_edit.scheduler.config)
pipe_edit.load_lora_weights("/home/workspace/volume3/ps/pretrained_model/RORem_lcm/pytorch_lora_weights.safetensors")
pipe_edit.to('cuda')

But encounter

Loading adapter weights from state_dict led to missing keys in the model: down_blocks.1.attentions.0.transformer_blocks.0.attn1.to_q.lora_A.default_0.weight, down_blocks.1.attentions.0.transformer_blocks.0.attn1.to_q.lora_B.default_0.weight, down_blocks.1.attentions.0.transformer_blocks.0.attn1.to_k.lora_A.default_0.weight, down_blocks.1.attentions.0.transformer_blocks.0.attn1.to_k.lora_B.default_0.weight

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions