IPAdapter Precise Style Transfer(IPAdapterPreciseStyleTransfer)
IPAdapter Precise Style Transfer node from ComfyUI-IPAdapter-plus.
IP Adapter Precise Style Transfer
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, anIMAGEinput can contain a batch, so this may also be used with multiple reference images depending on the IPAdapter setup. - weight (
FLOAT, default1, range-1to5, step0.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, default1, range-5to5, step0.05): A dedicated multiplier for style emphasis, separate from the generalweight. Values above1push the style more strongly, while values below1soften 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, default0, range0to1, step0.001): The sampling fraction at which the IPAdapter effect begins.0starts the effect at the beginning of sampling. - end_at (
FLOAT, default1, range0to1, step0.001): The sampling fraction at which the IPAdapter effect ends.1keeps 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, andimage. The optionalimage_negative,attn_mask, andclip_visioninputs refine the effect when needed. - Use
start_atandend_atto focus the style transfer on part of the sampling process. For example,start_atat0.2andend_atat0.8applies the effect only during the middle portion of sampling. - Adjust
weightfirst for overall strength, then usestyle_boostwhen the style needs extra emphasis without changing the general IPAdapter influence. combine_embedshas 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_scalingcontrols how invasive the embedding change is.V onlyis the most limited mode, while theK+Vvariants apply the image embedding to more attention components.- Use
image_negativewhen the reference image contains a style or trait you want to avoid, and useattn_maskwhen the style transfer should be restricted to a specific region. - Only provide
clip_visionwhen 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.