IPAdapter Encoder(IPAdapterEncoder)
IPAdapter Encoder node from ComfyUI-IPAdapter-plus.
IP Adapter Encoder
Description
The IPAdapter Encoder node turns a source image into IPAdapter embeddings that can be fed into IPAdapter apply nodes. It uses the vision encoder associated with the supplied IPAdapter model (or an explicitly provided CLIP vision model) to project the image into the embedding space, and it returns the result as a pair of EMBEDS values: one for the positive conditioning and one for the negative conditioning. Because the encoding is separated from application, the same image embedding can be reused across multiple samplers, combined with other embeddings, or routed through regional masking without re-encoding the image each time.
This node lives in the ipadapter/embeds category.
Inputs
Required Inputs
- ipadapter (
IPADAPTER): The IPAdapter model that provides the projection layers and configuration used to encode the image. The encoder must match the model you later apply the embeddings with, otherwise the resulting embeddings will not be meaningful. - image (
IMAGE): The reference image to encode. Its visual content defines the style, subject, or composition that the embedding will transfer. The image is passed through the model's CLIP vision encoder internally. - weight (
FLOAT, default1.0, range-1.0to3.0, step0.01): Scales the strength of the produced embedding.1.0applies the embedding at its natural strength, values below1.0soften the effect, values above1.0amplify it, and negative values invert the embedding's influence. The allowed range extends past the usual0to1band so you can push the effect harder or reverse it.
Optional Inputs
- mask (
MASK): Restricts where the embedding takes effect. When connected, the embedding is applied only within the masked region of the latent, which is useful for regional prompting or for limiting the IPAdapter influence to part of the image. When omitted, the embedding applies globally. - clip_vision (
CLIP_VISION): Overrides the vision encoder used to interpret the input image. Supply this when you want to force a specific encoder rather than relying on the one associated with the IPAdapter model, for example to match an encoder used elsewhere in the workflow.
Outputs
- EMBEDS (positive): The encoded image embedding intended for positive conditioning.
- EMBEDS (negative): The corresponding embedding intended for negative conditioning.
Both outputs share the same underlying encoding and are separated so they can be wired to the positive and negative sides of an IPAdapter apply node or a conditioning combine node.
Usage Notes
- Encode once, apply many times: the embedding is independent of the sampler, so a single IPAdapter Encoder can feed several apply nodes or sampling stages.
- Keep the
ipadaptermodel consistent between this node and the apply node. Mixing models generally produces degraded or unpredictable results. - Only connect
clip_visionwhen you specifically need to override the encoder; leaving it unset uses the IPAdapter model's own vision configuration. - Use
maskfor regional application and leave it disconnected for a global style or subject transfer. - The
weightrange of-1.0to3.0is deliberately wider than0to1. Negative values can be used to push conditioning away from the reference image, while values above1.0strengthen the transfer at the risk of overpowering the text prompt.
Comments
Sign in with GitHub to join the discussion.