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

ImportError: cannot import name 'monkeypatch_lora' from 'lora_diffusion' (/usr/local/lib/python3.10/dist-packages/lora_diffusion/__init__.py) #222

Open kopyl opened 1 year ago

kopyl commented 1 year ago

Why?

I'm following your script: https://github.com/cloneofsimo/lora/blob/master/scripts/merge_lora_with_lora.ipynb

JamesSand commented 1 year ago

hi I have met the same problem. Is there any solution for this?

kopyl commented 1 year ago

@JamesSand seems like there is another way to use LoRA with DIffusers:

https://github.com/kohya-ss/sd-webui-additional-networks/issues/148#issuecomment-1495322043

pustar commented 1 year ago

same problem

SerendipitysX commented 1 year ago

I have the same issue, then I follow the latest ipynb(run_inpainting_inference.ipynb), it works.

danieltanhx commented 12 months ago

it's related to https://github.com/cloneofsimo/lora/commit/4869fe3426ea98607084c86cdc9b4785d67a5f6d. For those who don't want to deal with it, can do git checkout 4869fe3426ea98607084c86cdc9b4785d67a5f6d once cd into lora folder and restart again