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

InputTypeDefaultRange / OptionsDescription
modelMODEL--The diffusion model that receives the IPAdapter conditioning. Connect the model you want to influence.
ipadapterIPADAPTER--The IPAdapter model or preset. This defines the image projection and the available weight types.
imageIMAGE--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.
weightFLOAT1-1 to 5, step 0.05Strength of the IPAdapter effect. 0 disables the effect, values above 1 strengthen it, and negative values can invert the influence.
weight_typeCOMBO-Defined by the IPAdapter implementationSelects 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_atFLOAT00 to 1, step 0.001Fraction of the sampling process at which the IPAdapter begins to apply. 0 means from the first step.
end_atFLOAT10 to 1, step 0.001Fraction of the sampling process at which the IPAdapter stops applying. 1 means through the final step.
embeds_scalingCOMBO-V only, K+V, K+V w/ C penalty, K+mean(V) w/ C penaltyControls 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_sizeINT00 to 4096Number 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 as K+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

InputTypeDescription
image_negativeIMAGEAn 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_maskMASKAn optional attention mask that limits where the IPAdapter influence is applied. Lighter regions of the mask receive more influence; darker regions receive less.
clip_visionCLIP_VISIONAn 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 image and let encode_batch_size control how they are processed.
  • Start with the default weight, start_at, and end_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_at lower than end_at to 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, and clip_vision are 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_type and embeds_scaling both 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.

Loading comments…