ipadapter/style_compositiongenerated

IPAdapter Style & Composition SDXL(IPAdapterStyleComposition)

IPAdapter Style & Composition SDXL node from ComfyUI-IPAdapter-plus.

IP Adapter Style Composition

model
ipadapter
image_style
image_composition
image_negative
attn_mask
clip_vision
weight_style
1.00
weight_composition
1.00
expand_style
combine_embeds
average
start_at
0.000
end_at
1.000
embeds_scaling
COMBO
IPAdapter plus

Description

The IPAdapter Style & Composition SDXL node (class IPAdapterStyleComposition) applies two IPAdapter reference paths to a model: one driven by a style image and one driven by a composition image. It is intended for SDXL workflows and is categorized under ipadapter/style_composition. The node lets you set independent strengths for style and composition, choose how the two embeddings are combined, and schedule the active range across the diffusion process. Optional inputs allow a negative reference image, an attention mask, and a specific CLIP vision encoder.

Inputs

Required

  • model (MODEL): The diffusion model to patch with the IPAdapter style and composition conditioning.
  • ipadapter (IPADAPTER): The IPAdapter configuration, including weights and projection layers, used for both reference paths.
  • image_style (IMAGE): The style reference image. Its influence is controlled by weight_style.
  • image_composition (IMAGE): The composition reference image. Its influence is controlled by weight_composition.
  • weight_style (FLOAT, default 1, min -1, max 5, step 0.05): Strength of the style reference. Negative values invert the effect; 0 effectively disables the style path. Values above 1 increase style influence.
  • weight_composition (FLOAT, default 1, min -1, max 5, step 0.05): Strength of the composition reference. Negative values invert the effect; 0 effectively disables the composition path. Values above 1 increase composition influence.
  • expand_style (BOOLEAN, default false): Enables the expanded style behavior for the style reference. Leave it disabled for the normal style embedding; enable it when you want the style path to have broader influence.
  • combine_embeds (COMBO, default average): How the style and composition embeddings are merged. Options are concat, add, subtract, average, and norm average. average provides a balanced blend, concat keeps the embeddings separate before merging, add and subtract combine them element-wise, and norm average averages with normalization.
  • start_at (FLOAT, default 0, min 0, max 1, step 0.001): The point in the diffusion process where IPAdapter application begins, expressed as a fraction of the total steps. 0 means the start of sampling.
  • end_at (FLOAT, default 1, min 0, max 1, step 0.001): The point in the diffusion process where IPAdapter application ends, expressed as a fraction of the total steps. 1 means the end of sampling. Set start_at below end_at for a normal active window.
  • embeds_scaling (COMBO): Controls how attention embeddings are scaled. Options are V only, K+V, K+V w/ C penalty, and K+mean(V) w/ C penalty. These modes trade off value-only scaling, key and value scaling, and variants that include a penalty term.

Optional

  • image_negative (IMAGE): An optional negative reference image. When supplied, it can steer the IPAdapter away from the features of this image.
  • attn_mask (MASK): An optional attention mask that limits where the IPAdapter influence is applied. Use it to confine style or composition effects to masked regions.
  • clip_vision (CLIP_VISION): An optional CLIP vision encoder to use for the reference images. Supply it when you need to override the default vision encoder used by the IPAdapter setup.

Outputs

The current source definition declares no output sockets for this node. Configure it through the inputs above according to the package's workflow conventions.

Usage Notes

  • Both image_style and image_composition are required. To use only one reference type, set the other path's weight to 0 or use the dedicated single-reference IPAdapter node.
  • Weights accept negative values. A negative style or composition weight reverses that reference's effect rather than simply reducing it.
  • Use start_at and end_at to apply the IPAdapter only during part of sampling. This is useful when you want composition established early and style refined later, or when you want to avoid over-constraining the final steps.
  • combine_embeds changes how the two references interact. If style and composition compete, try average or norm average; if you want to preserve their distinct features, try concat.
  • The optional attn_mask is useful for regional application, while image_negative can help suppress unwanted traits from the reference images.
  • embeds_scaling affects attention behavior and may need adjustment for different IPAdapter weights. Start with the default option provided by your workflow and change it only when you need a specific key/value scaling behavior.

Comments

Sign in with GitHub to join the discussion.

Loading comments…