ComfyUI ControlNet + AnimateDiff
Overview
Control Net section
We load in images using a node from the Video Helper Suite, this is what will control the number of frames ultimately (it replaces the empty image from the previous txt2img workflow). The parameters are fairly self explanatory.
The image sequence then gets resized to our desired output format and is fed into the VAE encode.
The ControlNet section is a little more involved. The Resized Image in THIS example, gets connected to a Realistic Lineart preprocessor - however depending on what we are processing we can use a different one. These are found in the "ControlNet Preprocessors" menu. This is connected to the Apply Image input of a "Apply Controlnet" node. We also attach a "Load Controlnet", selecting an appropriate model - here we are producing lineart, so we load that.
Additionally we hook the positive and negative prompts into the ControlNet - then feed the outputs into the KSampler as normal.
That's pretty much it. You'll have to play around with the weight of the ControlNet & various models.
Comments
Post a Comment