IPAdapter Precise Composition(IPAdapterPreciseComposition)
IPAdapter Precise Composition node from ComfyUI-IPAdapter-plus.
IP Adapter Precise Composition
Description
IPAdapter Precise Composition (class IPAdapterPreciseComposition) is an IPAdapter-plus node for applying image-prompt embeddings to a diffusion model with extra control over composition. It takes a model, an IPAdapter, a reference image, and optional negative image, attention mask, and CLIP vision encoder. Compared with a basic IPAdapter application, it exposes a composition_boost control plus detailed settings for embedding combination, active sampling range, and embedding scaling. Use it when you want the layout or composition of the reference image to influence generation more precisely.
Inputs
Required Inputs
model(MODEL): The diffusion model that receives the IPAdapter patching or conditioning. Connect this from your checkpoint or model loader before passing the result to the sampler.ipadapter(IPADAPTER): The IPAdapter configuration and weights. This determines the adapter architecture and the encoder pairing used with the reference image.image(IMAGE): The positive reference image. Its visual content provides the image prompt that the IPAdapter applies to the model.weight(FLOAT): Overall strength of the IPAdapter effect. Default is1.0; allowed range is-1.0to5.0; step is0.05. Higher values generally increase influence. Negative values are allowed and can produce inverted or contrast-style effects, while very high values may overpower the text prompt or cause artifacts.composition_boost(FLOAT): Extra emphasis applied to composition-related features from the reference image. Default is0.0; allowed range is-5.0to5.0; step is0.05. Positive values push the result toward the reference image's spatial layout or structure; negative values reduce or reverse that emphasis. Use this to tune composition separately from the generalweight.combine_embeds(COMBO): How image embeddings are combined when more than one embedding is present. Options areconcat,add,subtract,average, andnorm average.concatjoins embeddings,addsums them,subtractapplies a difference,averagetakes the mean, andnorm averageaverages after normalization. This setting mainly matters when positive and negative or multiple image embeddings are involved.start_at(FLOAT): Fraction of the sampling schedule where the IPAdapter effect begins. Default is0.0; allowed range is0.0to1.0; step is0.001. At0.0, the adapter is active from the first step. Increase it to delay the adapter's influence.end_at(FLOAT): Fraction of the sampling schedule where the IPAdapter effect ends. Default is1.0; allowed range is0.0to1.0; step is0.001. At1.0, the adapter remains active through the final step. Decrease it to stop the adapter earlier. Keepstart_atlower thanend_atfor a normal active window.embeds_scaling(COMBO): How key and value embeddings are scaled during IPAdapter attention. Options areV only,K+V,K+V w/ C penalty, andK+mean(V) w/ C penalty.V onlyscales value embeddings only;K+Vscales both key and value embeddings; the twoC penaltyvariants add a conditioning penalty during scaling. These are advanced controls: start with a simple option and change them only when you need finer control over strength and fidelity.
Optional Inputs
image_negative(IMAGE): An optional negative reference image. When connected, it provides features to push the result away from, complementing the positiveimage. Leave it unconnected for no negative image influence.attn_mask(MASK): An optional spatial mask that limits where the IPAdapter effect applies. Use it to restrict the reference influence to selected regions of the image and reduce its effect in masked-out areas.clip_vision(CLIP_VISION): An optional CLIP vision encoder override. If omitted, the IPAdapter uses its configured vision encoder. Connect this only when you need to force a specific CLIP vision model or when the adapter expects an explicit encoder.
Outputs
No outputs are declared in the current source definition. This node does not expose an output socket in this release according to the extracted facts.
Usage Notes
- Use
composition_boostas a separate dial for structural fidelity. If the reference image's general style is too strong but its composition is not being followed closely enough, lowerweightand raisecomposition_boost; if the composition is too rigid, reducecomposition_boost. - Restrict
start_atandend_atwhen the adapter should affect only the early, middle, or late part of sampling. Early steps often shape layout and composition, while later steps refine texture and detail. combine_embedsandembeds_scalingare advanced settings. Leave them at sensible defaults until you have a specific need for embedding merging or attention scaling behavior.- Connect
attn_maskwhen the reference image should influence only a region, such as a character, object, or foreground area, rather than the entire canvas. - Use
image_negativewhen certain visual traits from the reference image should be suppressed rather than encouraged. - Provide
clip_visiononly when you need to override the IPAdapter's default vision encoder. Mismatched encoders can reduce the adapter's effectiveness.
Comments
Sign in with GitHub to join the discussion.