generated
IPAdapter Batch (Adv.)(IPAdapterBatch)
IPAdapter Batch (Adv.) node from ComfyUI-IPAdapter-plus.
IP Adapter Batch
model
ipadapter
image
image_negative
attn_mask
clip_vision
weight
1.00
weight_type
COMBO
start_at
0.000
end_at
1.000
embeds_scaling
COMBO
encode_batch_size
0
IPAdapter plus
Description
IPAdapter Batch (Adv.) applies an IPAdapter to a diffusion model using one or more reference images. It is the batch-capable, advanced variant of the IPAdapter node: the image input accepts a batch, the node encodes those images (optionally in chunks via encode_batch_size), and it exposes the full set of advanced weighting, scheduling, embedding scaling, negative image, attention mask, and CLIP vision override controls. Use it when you want to apply several reference images in a single node rather than chaining multiple IPAdapter nodes.
Inputs
Required Inputs
| Input | Type | Default | Range / Options | Description |
|---|---|---|---|---|
model | MODEL | - | - | The diffusion model that receives the IPAdapter conditioning. Connect the model you want to influence. |
ipadapter | IPADAPTER | - | - | The IPAdapter model or preset. This defines the image projection and the available weight types. |
image | IMAGE | - | - | The reference image or batch of reference images. Because this is the batch variant, multiple images can be supplied as a batch and each is encoded and applied. |
weight | FLOAT | 1 | -1 to 5, step 0.05 | Strength of the IPAdapter effect. 0 disables the effect, values above 1 strengthen it, and negative values can invert the influence. |
weight_type | COMBO | - | Defined by the IPAdapter implementation | Selects the weighting curve used when applying the IPAdapter across the sampling steps. The available choices come from the loaded IPAdapter implementation; choose the curve that matches how you want the effect to rise or fall over the schedule. |
start_at | FLOAT | 0 | 0 to 1, step 0.001 | Fraction of the sampling process at which the IPAdapter begins to apply. 0 means from the first step. |
end_at | FLOAT | 1 | 0 to 1, step 0.001 | Fraction of the sampling process at which the IPAdapter stops applying. 1 means through the final step. |
embeds_scaling | COMBO | - | V only, K+V, K+V w/ C penalty, K+mean(V) w/ C penalty | Controls how the image embeddings are scaled before they are injected into the attention layers. See the notes below for the behavior of each option. |
encode_batch_size | INT | 0 | 0 to 4096 | Number of reference images encoded per chunk. The default of 0 leaves chunking at the node's default behavior. Lower values reduce peak VRAM when processing a large image batch; higher values can be faster when memory allows. |
embeds_scaling Options
V only: Scales only the value vectors. This is the lightest touch and tends to change appearance or style while preserving spatial structure.K+V: Scales both the key and value vectors, giving the reference image stronger influence over both content and style.K+V w/ C penalty: Same asK+V, with an additional penalty applied to the embedding center to reduce unwanted color or style drift.K+mean(V) w/ C penalty: Scales the keys and the mean of the values, with the same center penalty. This is a more conservative variant.
Optional Inputs
| Input | Type | Description |
|---|---|---|
image_negative | IMAGE | An optional negative reference image. When connected, the node pushes the generation away from the content of this image. This is useful for suppressing an unwanted style, color, object, or other visual trait. |
attn_mask | MASK | An optional attention mask that limits where the IPAdapter influence is applied. Lighter regions of the mask receive more influence; darker regions receive less. |
clip_vision | CLIP_VISION | An optional CLIP vision model override. When provided, it is used to encode the reference image or images instead of the vision encoder that would otherwise be used by the IPAdapter. This allows you to match a specific vision encoder or experiment with different encoders. |
Outputs
No outputs are declared in the current source.
Usage Notes
- This node is intended for workflows that need more than one reference image in a single IPAdapter application. Instead of chaining several IPAdapter nodes, supply the images as a batch through
imageand letencode_batch_sizecontrol how they are processed. - Start with the default
weight,start_at, andend_at, then adjust the active window if you want the IPAdapter to affect only the early or late part of sampling. Early steps generally shape composition and layout, while later steps affect detail and texture. - Keep
start_atlower thanend_atto define a valid application window. If the window is empty, the IPAdapter has no effect. - If you run out of VRAM with a large image batch, reduce
encode_batch_size. If you have headroom and want faster processing, increase it. image_negative,attn_mask, andclip_visionare optional and can be left unconnected. The negative image is useful for suppression, the attention mask is useful for spatial control, and the CLIP vision override is useful when you need a specific image encoder.- The advanced controls interact. In particular,
weight_typeandembeds_scalingboth change how strongly and in what manner the reference image influences the model, so test combinations rather than assuming one setting will behave the same across all IPAdapter models.
Comments
Sign in with GitHub to join the discussion.