Anima LLLite Extras ππ π π
Feed the source mask to Anima's inpainting ControlNet
- inpaint_mask
- cn_extras
- cn_extras
This is a small, specific helper that exists for exactly one job: getting a source mask into Anima's 4-channel LLLite inpainting model. Anima's inpainting ControlNet needs to know what region you're inpainting, and it wants that as a fourth channel alongside the image - not as the pack's usual effect mask. This node packages your mask into the right shape and hands it off as cn_extras, which you then plug into a weights node feeding the ControlNet.
If you're not using the Anima LLLite inpainting model specifically, you don't need this node. It's not a general-purpose mask tool.
How it works
Most ControlNets in this pack take a mask through mask_optional on the apply node, where it acts as an attention/effect mask - it decides where and how strongly the control applies. Anima's inpainting LLLite is different: the mask is part of the model's actual input (the fourth channel), telling it which pixels are the hole to fill. That's a separate pathway, and this node is the bridge for it. Crucially, the two masks coexist - mask_optional on the apply node still works as the ordinary effect mask, while this node carries the inpainting source mask. They're not the same input and don't override each other.
The inputs and outputs that matter
inpaint_mask(required, MASK) - the mask marking the region to inpaint. This is the source mask the inpainting model consumes as its extra channel.
Optional cn_extras (input) lets you chain onto existing extras data so you can combine this with other weight extras rather than replacing them.
Output is cn_extras (CN_WEIGHTS_EXTRAS) - route it into the cn_extras input of a weights node such as ControlNet Custom Weights [Anima] or Scaled Soft Weights, which then feeds the ControlNet.
How to install it
ComfyUI Manager: search ComfyUI-Advanced-ControlNet, install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/Kosinkadink/ComfyUI-Advanced-ControlNet
then restart. No dependencies. You'll also need the Anima LLLite inpainting model patch (from kohya-ss/Anima-LLLite) in ComfyUI/models/model_patches, loaded via the Load Anima LLLite Model node - this Extras node only prepares the mask, it doesn't load anything.
Common issues & troubleshooting
Nothing changes when you connect it. The output has to reach the ControlNet through a weights node's cn_extras input - it's not wired directly to the apply node. Path is: this node β a weights node's cn_extras β the weights node's CN_WEIGHTS β weights_override on the apply node.
You're confusing this with the effect mask. They're different. The inpainting source mask goes through here; the ordinary where-does-control-apply mask still goes into mask_optional on the apply node. Using both together is fine and often what you want.
You're not on the inpainting model. This node only matters for Anima's 4-channel inpainting LLLite. If you loaded the mixed lineart/scribble/grayscale model, you don't use this at all.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| inpaint_mask | MASK | β | |
| cn_extrasopt | CN_WEIGHTS_EXTRAS | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| cn_extras | CN_WEIGHTS_EXTRAS | β |