lllyasviel / ControlNet

Let us control diffusion models!
Apache License 2.0
28.97k stars 2.62k forks source link

Inpainting Controlnet #611

Open putdanil opened 6 months ago

putdanil commented 6 months ago

I've trained controlnet for sd2 inpainting model by concatenating control image, masked image and the mask itself. What do I need to change in inference code to use this model?

size mismatch for input_blocks.0.0.weight: copying a param with shape torch.Size([320, 9, 3, 3]) from checkpoint, the shape in current model is torch.Size([320, 4, 3, 3])

js-duan commented 1 month ago

Have you solved the problem?