cloneofsimo / lora

Using Low-rank adaptation to quickly fine-tune diffusion models.
https://arxiv.org/abs/2106.09685
Apache License 2.0
6.83k stars 473 forks source link

The examples in run_inference.ipynb cannot work. RuntimeError: The size of tensor a (320) must match the size of tensor b (2560) at non-singleton dimension 2. #249

Open xingrunwang opened 1 year ago

xingrunwang commented 1 year ago

Directly running the code in the run_inference.ipynb resulted in an error. Does anyone have the same problem and how should solve it?

zzbuzzard commented 1 year ago

See #231 - this is the same issue. Unfortunately this project doesn't work with newer versions of diffusers, so the workaround is to downgrade to 0.14.

xingrunwang commented 1 year ago

Thank you very much! I solve it.

barry2025 commented 10 months ago

I met the same promblem and get new error after install diffusers==0.14,

RuntimeError: mat1 and mat2 shapes cannot be multiplied (8192x320 and 1024x8): image

barry2025 commented 10 months ago

It works when I use diffusers==0.15.0, thanks