IPAdapter FaceID(IPAdapterFaceID)
IPAdapter FaceID node from ComfyUI-IPAdapter-plus.
IP Adapter Face ID
Description
IPAdapter FaceID (class IPAdapterFaceID) applies IP-Adapter FaceID conditioning to a diffusion model. It combines a base MODEL, an IPADAPTER, and a reference face IMAGE to produce a patched model and an image output. The node belongs to the ipadapter/faceid category in ComfyUI-IPAdapter-plus.
Use it when you want the identity or facial characteristics of a reference image to influence generation. The required inputs establish the model and adapter, while the float widgets tune strength and sampling range. The combo widgets control embedding combination and attention scaling. Optional inputs allow a negative reference image, an attention mask, a CLIP vision encoder, and an InsightFace provider.
Inputs
Required Inputs
| Input | Type | Default | Range / Options | Description |
|---|---|---|---|---|
model | MODEL | N/A | N/A | The diffusion model that receives FaceID conditioning. The node returns a patched version of this model. |
ipadapter | IPADAPTER | N/A | N/A | The IP-Adapter configuration and weights used for FaceID conditioning. |
image | IMAGE | N/A | N/A | The reference face image. This is the source image for the FaceID conditioning. |
weight | FLOAT | 1 | -1 to 3, step 0.05 | Overall strength of the FaceID conditioning. Higher values increase influence; 0 applies no influence. Negative values are allowed for inverted or reduced influence where supported. |
weight_faceidv2 | FLOAT | 1 | -1 to 5, step 0.05 | Strength of the FaceID v2 contribution. Use this to tune FaceID v2 independently from the general weight. |
weight_type | COMBO | N/A | Choices supplied by the installed IPAdapter implementation | Selects the weighting type used when applying the adapter. The available options depend on the installed implementation. |
combine_embeds | COMBO | N/A | concat, add, subtract, average, norm average | Controls how FaceID embeddings are combined. concat concatenates embeddings, add sums them, subtract subtracts one from another, average takes the arithmetic mean, and norm average uses a normalized average. |
start_at | FLOAT | 0 | 0 to 1, step 0.001 | Fraction of the sampling schedule where FaceID conditioning begins. 0 starts conditioning from the beginning. |
end_at | FLOAT | 1 | 0 to 1, step 0.001 | Fraction of the sampling schedule where FaceID conditioning ends. 1 keeps conditioning active through the end. |
embeds_scaling | COMBO | N/A | V only, K+V, K+V w/ C penalty, K+mean(V) w/ C penalty | Controls how embeddings influence attention. V only scales only value embeddings; K+V scales keys and values; the two C penalty variants add a conditioning penalty and differ in whether values or the mean of values are used. |
Optional Inputs
| Input | Type | Description |
|---|---|---|
image_negative | IMAGE | An optional negative reference image. Use it to steer generation away from unwanted facial characteristics. |
attn_mask | MASK | An optional attention mask that restricts where the FaceID adapter applies its influence. |
clip_vision | CLIP_VISION | An optional CLIP vision model for extracting image features. |
insightface | INSIGHTFACE | An optional InsightFace model used for face embedding extraction. |
Outputs
| Output | Type | Description |
|---|---|---|
MODEL | MODEL | The patched diffusion model with FaceID conditioning applied. Connect this to your sampler or downstream model nodes. |
IMAGE | IMAGE | An image output emitted alongside the patched model, making it convenient to reuse the reference image in subsequent nodes. |
Usage Notes
- Start with the default weights of
1for bothweightandweight_faceidv2. Lower them if the reference identity dominates the result, or raise them within the allowed ranges if the influence is too weak. - Use
start_atandend_atto limit FaceID conditioning to a portion of the sampling schedule. For example, ending conditioning before the final steps can reduce over-constraint. - Choose
combine_embedsbased on how you want multiple face embeddings merged.concatandaddpreserve more information, whileaverageandnorm averageproduce a more balanced combined embedding. - Adjust
embeds_scalingwhen you need finer control over attention behavior. TheC penaltyvariants are useful when conditioning needs to be regularized. - Provide
image_negativewhen you want to explicitly push away from certain facial features. Provideattn_maskwhen the adapter should affect only a masked region. - The optional
clip_visionandinsightfaceinputs let you supply dedicated feature extraction and face embedding models. - Because
weight_typeis implementation-defined, check the ComfyUI interface for the exact choices available in your installed IPAdapter build.
Comments
Sign in with GitHub to join the discussion.