generated

IPAdapter Precise Style Transfer(IPAdapterPreciseStyleTransfer)

IPAdapter Precise Style Transfer node from ComfyUI-IPAdapter-plus.

IP Adapter Precise Style Transfer

model
ipadapter
image
image_negative
attn_mask
clip_vision
weight
1.00
style_boost
1.00
combine_embeds
COMBO
start_at
0.000
end_at
1.000
embeds_scaling
COMBO
IPAdapter plus

Description

IPAdapter Precise Style Transfer applies an IPAdapter style-transfer patch to a diffusion model using a reference image. It combines a diffusion MODEL, an IPADAPTER, and an IMAGE reference to inject image-derived embeddings into the model's attention path. Dedicated controls let you tune overall influence, style emphasis, embedding combination, the active sampling range, and how embeddings are scaled inside attention.

This node has no outputs. It does not return a MODEL, CONDITIONING, or image socket; it acts as a patch or configuration step on the model supplied to the model input. Because there is no output socket, downstream nodes cannot be wired directly from this node. Place it where the IPAdapter patch should be configured for the model used by the workflow.

Inputs

Required Inputs

  • model (MODEL): The diffusion model that receives the IPAdapter style-transfer patch. This is the model object affected by the node's settings.
  • ipadapter (IPADAPTER): The IPAdapter weights and configuration used to encode and apply the reference image.
  • image (IMAGE): The reference image whose style should be transferred. In ComfyUI, an IMAGE input can contain a batch, so this may also be used with multiple reference images depending on the IPAdapter setup.
  • weight (FLOAT, default 1, range -1 to 5, step 0.05): Overall strength of the IPAdapter effect. Lower values reduce the influence of the reference image; higher values increase it. Negative values are allowed for inverted or experimental effects.
  • style_boost (FLOAT, default 1, range -5 to 5, step 0.05): A dedicated multiplier for style emphasis, separate from the general weight. Values above 1 push the style more strongly, while values below 1 soften it. Negative values are available for experimental style suppression or inversion.
  • combine_embeds (COMBO): Controls how image embeddings are combined when more than one embedding is present, such as with a batched image input. Available modes:
    • concat: Concatenate embeddings.
    • add: Add embeddings together.
    • subtract: Subtract one embedding from another.
    • average: Average the embeddings.
    • norm average: Average after normalization.
  • start_at (FLOAT, default 0, range 0 to 1, step 0.001): The sampling fraction at which the IPAdapter effect begins. 0 starts the effect at the beginning of sampling.
  • end_at (FLOAT, default 1, range 0 to 1, step 0.001): The sampling fraction at which the IPAdapter effect ends. 1 keeps the effect active through the end of sampling.
  • embeds_scaling (COMBO): Determines which attention components receive the IPAdapter embedding scaling. Available modes:
    • V only: Scale value embeddings only.
    • K+V: Scale key and value embeddings.
    • K+V w/ C penalty: Scale key and value embeddings with a C penalty.
    • K+mean(V) w/ C penalty: Scale keys and the mean of the value embeddings with a C penalty.

Optional Inputs

  • image_negative (IMAGE): An optional negative reference image. Use it to provide a style or content reference that the IPAdapter should steer away from.
  • attn_mask (MASK): An optional attention mask that limits where the reference image influence is applied. This is useful when only part of the image area should receive the style transfer.
  • clip_vision (CLIP_VISION): An optional CLIP vision encoder override. Supply this when you need a specific vision encoder rather than relying on the IPAdapter or workflow default.

Outputs

This node has no outputs. It does not expose a model, conditioning, latent, or image socket. It is applied as a patch or configuration step on the supplied model input, and no downstream connection can be made from it.

Usage Notes

  • The required chain is model, ipadapter, and image. The optional image_negative, attn_mask, and clip_vision inputs refine the effect when needed.
  • Use start_at and end_at to focus the style transfer on part of the sampling process. For example, start_at at 0.2 and end_at at 0.8 applies the effect only during the middle portion of sampling.
  • Adjust weight first for overall strength, then use style_boost when the style needs extra emphasis without changing the general IPAdapter influence.
  • combine_embeds has the most visible effect when multiple image embeddings are present, such as with batched reference images. For a single reference image, the difference between modes may be subtle.
  • embeds_scaling controls how invasive the embedding change is. V only is the most limited mode, while the K+V variants apply the image embedding to more attention components.
  • Use image_negative when the reference image contains a style or trait you want to avoid, and use attn_mask when the style transfer should be restricted to a specific region.
  • Only provide clip_vision when you intentionally need to override the vision encoder. Using an encoder that does not match the IPAdapter expectations can reduce quality or produce unexpected results.

Comments

Sign in with GitHub to join the discussion.

Loading comments…