maszhongming / Multi-LoRA-Composition

Repository for the Paper "Multi-LoRA Composition for Image Generation"
425 stars 45 forks source link

ValueError: Trying to set a tensor of shape torch.Size([320, 9, 3, 3]) in "weight" (which has shape torch.Size([320, 4, 3, 3])), this look incorrect. #2

Closed I8Robot closed 6 months ago

I8Robot commented 6 months ago

I try to load from safenesstensor but got error:

model_name = 'Stable-diffusion/sd15/realisticVisionV20_v20NoVAE-inpainting.safetensors'

    # set base model
    pipeline = StableDiffusionPipeline.from_single_file(
        model_name,
        custom_pipeline="MingZhong/StableDiffusionPipeline-with-LoRA-C",
        use_safetensors=True
    ).to("cuda")

ERROR:

raise ValueError(
ValueError: Trying to set a tensor of shape torch.Size([320, 9, 3, 3]) in "weight" (which has shape torch.Size([320, 4, 3, 3])), this look incorrect.
dengfenglai321 commented 5 months ago

hi, I meet the same error. Did you solved it? can you help me? Thanks