IPAdapter Embeds(IPAdapterEmbeds)
IPAdapter Embeds node from ComfyUI-IPAdapter-plus.
IP Adapter Embeds
Description
IPAdapter Embeds applies a precomputed IPAdapter embedding to a diffusion model. It is the embeds-based counterpart to the image-based IPAdapter nodes: instead of encoding an image inside the node, it takes one or more EMBEDS inputs and patches the model so those embeddings influence sampling. The returned MODEL can be passed to a sampler or combined with other model patches.
This node is useful when embeddings have already been created by an IPAdapter encoder, when you want to reuse the same embedding across several models or workflows, or when you need direct control over positive, negative, and masked embedding application. It does not output conditioning; the IPAdapter effect is applied through the model attention patch.
Inputs
Required Inputs
model(MODEL): The diffusion model to patch. This is the model that will receive the IPAdapter embedding influence.ipadapter(IPADAPTER): The IPAdapter configuration to use. Connect the output of an IPAdapter loader node.pos_embed(EMBEDS): The positive IPAdapter embedding. This is the embedding that drives the adapter effect. It is required.weight(FLOAT, default1, min-1, max3, step0.05): Strength of the positive embedding. Lower values reduce influence, values above1increase it, and negative values can invert or oppose the effect depending on the adapter and weight type.weight_type(COMBO): Selects how the weight is distributed through the IPAdapter attention layers. The available choices are supplied by the installed package and can change between versions.start_at(FLOAT, default0, min0, max1, step0.001): Fraction of the sampling schedule where the embedding effect begins. For example,0.2starts the effect at about 20 percent of sampling.end_at(FLOAT, default1, min0, max1, step0.001): Fraction of the sampling schedule where the embedding effect ends. The default of1keeps the effect active through the end.embeds_scaling(COMBO): Controls how the embeddings are injected into attention. The available options are:V only: modifies only the value component. This is the most limited application and is often a good starting point for subtle effects.K+V: modifies both key and value components for stronger control.K+V w/ C penalty: modifies key and value components and applies the C penalty variant.K+mean(V) w/ C penalty: uses key and mean value components with the C penalty variant.
Optional Inputs
neg_embed(EMBEDS): An optional negative IPAdapter embedding. Connect it when you want the adapter to steer away from a concept or when your embedding source provides a paired negative embedding. If omitted, this node does not supply an explicit negative embedding.attn_mask(MASK): An optional spatial mask that limits where the IPAdapter influence is applied. Higher mask values allow more influence; zero values suppress it.clip_vision(CLIP_VISION): An optional CLIP vision model input accepted by the underlying IPAdapter pipeline. With precomputed embeddings it is often unnecessary; connect it only when your adapter or workflow requires a CLIP vision model.
Outputs
MODEL: The patched model with the IPAdapter embedding applied. Connect this to a sampler or to another model-processing node. The output is a model, not conditioning, an image, or an embedding.
Usage Notes
- Create
EMBEDSwith an IPAdapter encoder node before using this node. The embeds must be compatible with the selectedipadapter. - This node patches the model rather than changing a conditioning tensor. The effect therefore applies wherever the patched model is used, subject to
start_at,end_at, andattn_mask. start_atandend_atare fractions of the total sampling schedule, not absolute step numbers. Keepstart_atlower thanend_atso there is an active range.- Use
weightandembeds_scalingtogether to balance strength and content preservation. Start with a moderate weight and a simpler scaling mode, then adjust if the effect is too weak or too strong. - The
weight_typechoices are version-dependent. If a workflow was built with a different package version, verify that the saved choice still exists. - Chain multiple
IPAdapter Embedsnodes to apply several embeddings. The order of model patches can affect the final result, so test the chain order if the combined effect is unexpected. - Use
attn_maskwhen the embedding should affect only part of the image. The mask is evaluated through the model attention patch, so its effective resolution follows the latent and attention layout. - To disable the effect without removing the node, set
weightto0or bypass the node. - Negative
weightvalues and values above1can produce strong or inverted results and may need lowerweight_typeor scaling settings to remain stable.
Comments
Sign in with GitHub to join the discussion.