sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

Couldn't make extract_controlnet models work

Open Meghpal opened this issue 2 years ago • 2 comments

In the README Use extract_controlnet.py to extract controlnet from original .pth file.

I want to understand what the original .pth file means? Is it just any regular SD model? If so, can it be applied to .ckpt as well?

Meghpal avatar Feb 22 '23 06:02 Meghpal

extract_controlnet.py could only applies to controlnet checkpoints. checkout https://github.com/Mikubill/sd-webui-controlnet#extraction and https://github.com/Mikubill/sd-webui-controlnet/issues/73#issuecomment-1437011581 for difference

Mikubill avatar Feb 22 '23 06:02 Mikubill

Okay I think I am more clear now, I want to ask if there is any script that does:

My_model.control_model.weights 
= SD15.control_model_X.weights + My_model.model.diffusion_model.weights - SD15.model.diffusion_model.weights

and generate all the control_mymodel_X.pth files without controlnet training as discussed in the other thread? Or is it the default way for inference to add the difference SD15.control_model.weights - SD15.model.diffusion_model.weights to the main SD model weights selected on the top?

Meghpal avatar Feb 22 '23 07:02 Meghpal