ControlNet icon indicating copy to clipboard operation
ControlNet copied to clipboard

How to use controlNet with pretrained LoRA?

Open zengqixun12 opened this issue 1 year ago • 8 comments

I want to combine the pretrained LORA_model and pretrained controlnet_mdoel like "[control_sd15_depth.pth]",and export new model.

How to realize this function?

zengqixun12 avatar Mar 02 '23 06:03 zengqixun12

I have the same problem with you, is there any solution?

JamesSand avatar Apr 11 '23 02:04 JamesSand

I have the same problem with you, is there any solution?

I've solved this problem, and I combined Lora + Train + ControlNet + change basemodel, export the final result and the model without Stable-Diffusion-WebUI (only use the command line)

zengqixun12 avatar Apr 11 '23 03:04 zengqixun12

I have the same problem with you, is there any solution?

I will release the code in few days ;)

zengqixun12 avatar Apr 11 '23 03:04 zengqixun12

I have the same problem with you, is there any solution?

I will release the code in few days ;)

thanks a lot. I am also trying to solve this issue. May I ask should we apply lora on the trainable copy of controlnet?

JamesSand avatar Apr 11 '23 03:04 JamesSand

Not exactly, Lora is only effective on the main network and is independent from ControlNet

zengqixun12 avatar Apr 11 '23 03:04 zengqixun12

Hi @zengqixun12, may I ask do you still plan to release the code? Thank you :)

SnowdenLee avatar May 21 '23 16:05 SnowdenLee

@zengqixun12 Hello, do you still have plan to release the code? Thanks,

gwyong avatar Oct 20 '23 02:10 gwyong

I have the same problem with you, is there any solution?

I will release the code in few days ;)

thanks a lot. I am also trying to solve this issue. May I ask should we apply lora on the trainable copy of controlnet?

You can try: first merge the SD model of base and the parameters of lora, similar to the merger of con parameters and bn parameters. Then train your own data according to the document of train.md. I followed this plan and it worked.

jiachen0212 avatar Jul 12 '24 02:07 jiachen0212