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

Can I train lora for img2img style synthesis? #29

Open
tekmen0 opened this issue Apr 17, 2024 · 1 comment
Open

Can I train lora for img2img style synthesis? #29

tekmen0 opened this issue Apr 17, 2024 · 1 comment

Comments

@tekmen0
Copy link

tekmen0 commented Apr 17, 2024

1 image is not enough to capture my desired style. I want to leverage latent knowledge of instant style and fine-tune it with 300 input-output style image pairs. One way can be adding lora to existing layers of instantstyle.

Is it right way to go, or should I do something different?

Thanks for great repo :)

@tekmen0 tekmen0 changed the title Can I train lora for stylized image synthesis? Can I train lora for img2img style synthesis? Apr 17, 2024
@haofanwang
Copy link
Member

Here are two potential ways, I believe both can work if you already have style image pairs.

(1) Finetune InstantStyle with only style block updated. You can load the pre-trained weight.

(2) Train a LoRA, but only add LoRA at style block. At this time, you are actually training a B-LoRA.

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