Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find the function monkeypatch_lora() #257

Open
adi-lb-phoenix opened this issue Aug 30, 2023 · 1 comment
Open

cannot find the function monkeypatch_lora() #257

adi-lb-phoenix opened this issue Aug 30, 2023 · 1 comment

Comments

@adi-lb-phoenix
Copy link

as mentioned in this jupyter notebook file https://github.com/cloneofsimo/lora/blob/master/scripts/merge_lora_with_lora.ipynb .
rom lora_diffusion import monkeypatch_lora, tune_lora_scale, monkeypatch_add_lora

monkeypatch_lora(pipe.unet, torch.load("../lora_kiriko.pt"))
monkeypatch_lora(pipe.text_encoder, torch.load("../lora_kiriko.text_encoder.pt"), target_replace_module=["CLIPAttention"])
tune_lora_scale(pipe.unet, 1.00)

torch.manual_seed(0)
image = pipe(prompt, num_inference_steps=30, guidance_scale=7).images[0]
image.save("../contents/lora_with_clip.jpg")
image # Clearly overfitting.
but cannot find the function definition or the declaration .

@gogeorge
Copy link

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants