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

There are some problems when I run the scripts/run_img2img.ipynb #238

Closed AFeng-x closed 1 year ago

AFeng-x commented 1 year ago

Does anybody have the same problem as me? I haven't change any code. File "path/lora_diffusion/lora.py", line 55, in forward self.linear(input) RuntimeError: The size of tensor a (320) must match the size of tensor b (2560) at non-singleton dimension 2

Tsingularity commented 1 year ago

Hi @AFeng-x , just wondering how did you solve this error eventually? thanks!

Lucky-Light-Sun commented 1 year ago

just degrade you diffusers version, using this command: pip3 install diffusers==0.14