lora icon indicating copy to clipboard operation
lora copied to clipboard

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

Open kopyl opened this issue 2 years ago • 5 comments

Why?

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

kopyl avatar Mar 28 '23 01:03 kopyl

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

JamesSand avatar Apr 11 '23 12:04 JamesSand

@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

kopyl avatar Apr 11 '23 15:04 kopyl

same problem

pustar avatar May 08 '23 11:05 pustar

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

SerendipitysX avatar May 22 '23 16:05 SerendipitysX

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

danieltanhx avatar Jul 28 '23 01:07 danieltanhx