Examples
Controlnet

ControlNet and T2I-Adapter - ComfyUI workflow Examples

Note that in these examples the raw image is passed directly to the ControlNet/T2I adapter.

Each ControlNet/T2I adapter needs the image that is passed to it to be in a specific format like depthmaps, canny maps and so on depending on the specific model if you want good results.

The ControlNetApply node will not convert regular images into depthmaps, canny maps and so on for you. You will have to do that separately or using nodes to preprocess your images that you can find: Here (opens in a new tab)

You can find the latest controlnet model files here: Original version (opens in a new tab) or smaller fp16 safetensors version (opens in a new tab)

For SDXL stability.ai has released Control Loras that you can find Here (rank 256) (opens in a new tab) or Here (rank 128) (opens in a new tab). They are used exactly the same way (put them in the same directory) as the regular ControlNet model files.

ControlNet model files go in the ComfyUI/models/controlnet directory.

Scribble ControlNet

Here's a simple example of how to use controlnets, this example uses the scribble controlnet and the AnythingV3 model. You can load this image in ComfyUI (opens in a new tab) to get the full workflow.

Example

Here is the input image I used for this workflow:

输入图像

T2I-Adapter vs ControlNets

T2I-Adapters are much much more efficient than ControlNets so I highly recommend them. ControlNets will slow down generation speed by a significant amount while T2I-Adapters have almost zero negative impact on generation speed.

In ControlNets the ControlNet model is run once every iteration. For the T2I-Adapter the model runs once in total.

T2I-Adapters are used the same way as ControlNets in ComfyUI: using the ControlNetLoader node.

This is the input image that will be used in this example source (opens in a new tab):

输入图像

Here is how you use the depth T2I-Adapter:

Example

Here is how you use the depth Controlnet. Note that this example uses the DiffControlNetLoader node because the controlnet used is a diff control net. Diff controlnets need the weights of a model to be loaded correctly. The DiffControlNetLoader node can also be used to load regular controlnet models. When loading regular controlnet models it will behave the same as the ControlNetLoader node.

Example

You can load these images in ComfyUI (opens in a new tab) to get the full workflow.

Pose ControlNet

This is the input image that will be used in this example:

Example

Here is an example using a first pass with AnythingV3 with the controlnet and a second pass without the controlnet with AOM3A3 (abyss orange mix 3) and using their VAE.

Example

You can load this image in ComfyUI (opens in a new tab) to get the full workflow.

Mixing ControlNets

Multiple ControlNets and T2I-Adapters can be applied like this with interesting results:

Example

You can load this image in ComfyUI (opens in a new tab) to get the full workflow.

Input images:

示例