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
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.
I try to load from safenesstensor but got error:
ERROR: