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

train code about controlnet ? #82

Open
chuck-ma opened this issue Jul 18, 2023 · 1 comment
Open

train code about controlnet ? #82

chuck-ma opened this issue Jul 18, 2023 · 1 comment

Comments

@chuck-ma
Copy link

chuck-ma commented Jul 18, 2023

I am very interested in training a new controlnet model. After studying the kandinsky-2-2-controlnet-depth model uploaded in HuggingFace, I found that its architecture seems to be different from the controlnet model of the traditional stable diffusion model.

In my understanding, the structure of the unet model corresponding to kandinsky-2-2-controlnet-depth has been modified compared to the unet model of kandinsky-2-2-decoder. The "in_channels" parameter of conv_in has been changed to 8, and an additional module called "input_hint_block" has been added.

In terms of parameters, the weights and biases are also completely different from the unet model of kandinsky-2-2-decoder.

My training approach is as follows: First, download the unet models corresponding to kandinsky-2-2-controlnet-depth and kandinsky-2-2-decoder. Then, copy the overall parameters of the unet in kandinsky-2-2-decoder to the corresponding unet parameters in kandinsky-2-2-controlnet-depth (except for the parts with different structures).

Afterward, train the new unet model based on the fill50k dataset.

I wonder if there are any issues with this approach? I would greatly appreciate any help or suggestions you can provide.

Additionally, I seem to have not found the training code specifically for kandinsky-2-2-controlnet-depth. I would greatly appreciate it if you could provide information on where to find it.

@Blucknote

@ziniuwan
Copy link

ziniuwan commented Aug 8, 2023

Any updates for this?

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