haofanwang / Lora-for-Diffusers

The most easy-to-understand tutorial for using LoRA (Low-Rank Adaptation) within diffusers framework for AI Generation Researchers🔥
MIT License
739 stars 46 forks source link

size mismatch for conv_in.weight: copying a param with shape torch.Size([320, 9, 3, 3]) from checkpoint, the shape in current model is torch.Size([320, 4, 3, 3]). #18

Open Hrushi11 opened 11 months ago

Hrushi11 commented 11 months ago

Facing this error when running the script on every .safetensor file

haofanwang commented 11 months ago

It seems that you are loading an inpainting model weight into a normal text-to-image model.