IPAdapter from Params(IPAdapterFromParams)
IPAdapter from Params node from ComfyUI-IPAdapter-plus.
IP Adapter From Params
Description
IPAdapterFromParams applies an IPAdapter to a diffusion model using pre-computed IPAdapter parameters instead of raw images. Where the standard IPAdapter nodes take one or more images and encode them internally, this node expects an IPADAPTER_PARAMS bundle produced elsewhere in the ipadapter/params family of nodes, which already contains the embeddings and related settings. This makes it useful for reusing embeddings across several models, for caching encoded inputs, or for wiring up parameter sets that were assembled or modified by other nodes.
The node also exposes the two IPAdapter tuning controls, combine_embeds and embeds_scaling, so the way multiple embeddings are merged and the way attention is scaled can be chosen at apply time.
Inputs
Required
- model: The diffusion model to which the IPAdapter is applied.
- ipadapter: The IPAdapter model to use. This is the IPAdapter checkpoint/preset object, not an image.
- ipadapter_params: The parameter bundle containing the pre-computed IPAdapter embeddings and associated settings. This replaces the image inputs used by the simpler IPAdapter nodes.
- combine_embeds: How multiple embeddings in the parameter bundle are merged into one. Options are:
concat: concatenate the embeddings.add: sum the embeddings.subtract: subtract one embedding from another.average: take the arithmetic mean.norm average: take the average after normalization.
- embeds_scaling: How the IPAdapter scaling is distributed across the attention projections. Options are:
V only: apply scaling to the value projection only.K+V: apply scaling to both the key and value projections.K+V w/ C penalty: scale keys and values while applying a penalty to the conditioning.K+mean(V) w/ C penalty: use keys plus the mean of the values, with the same conditioning penalty.
Optional
- image_negative: An optional image whose embedding is used as a negative direction, pushing the result away from the supplied image.
- clip_vision: An optional CLIP vision encoder. Supply this when the parameter bundle does not already carry an encoder and one is needed, for example to encode
image_negative.
Outputs
This node declares no outputs. It applies the IPAdapter to the supplied model as part of the graph, so downstream nodes consume the same model reference rather than connecting to an output slot here.
Usage Notes
- Because the embeddings arrive already encoded, the usual image inputs are not present. If you want the standard image-driven workflow, use the regular IPAdapter node instead and feed its parameters into this node only when you need to share or override them.
combine_embedsonly has a visible effect when the parameter bundle contains more than one embedding; with a single embedding the merge mode is effectively neutral.- The
embeds_scalingmodes trade strength against fidelity. TheC penaltyvariants are intended to reduce over-strong conditioning artifacts when scaling keys and values together. - If
image_negativeis provided but no encoder is available from the parameters, connectclip_visionso the negative image can be encoded. - Keep
ipadapterconsistent with the encoder used to buildipadapter_params; mixing Adapter types and parameter bundles from a different encoder family will not produce meaningful results.
Comments
Sign in with GitHub to join the discussion.