﻿# InstantID conditioning: identity embeddings and facial landmarks have different jobs

Preserve InstantID identity embeddings, landmark images, selected-face identity, and the compatible generation components as separate inputs.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-instantid-identity-embedding-landmark-separation/
Language: en

## Separate identity from spatial guidance

InstantID combines identity-preserving image conditioning with facial landmark guidance. The [paper](https://arxiv.org/abs/2401.07519) describes strong semantic and weaker spatial conditions in its design. This distinction matters when debugging a generated portrait: resemblance to the intended reference and agreement with the requested pose are different properties. A plausible face with the right orientation is not sufficient evidence that the identity-conditioning path received the intended subject.

## Preserve the selected-face decision

The [official implementation](https://github.com/instantX-research/InstantID) obtains face information from the reference image and its example selects a detected face before extracting an embedding and landmarks. In a photograph containing several people, that selection becomes part of the request's meaning. Do not treat whichever face a default heuristic picks as automatically the user's intended reference. Record the chosen region and keep its identity linked to the extracted vector and the landmark image.

## Keep the conditioning inputs distinct

The example passes the embedding through image_embeds and the drawn landmark condition through image, with separate conditioning strengths. These are not interchangeable image representations. A wrapper that serializes both under one generic image field can hide which component was omitted or replaced. Preserve types and provenance across batching. If a vector is cached, its source face, extractor configuration, and compatible adapter revision belong in the cache identity, not merely the filename of the original photograph.

## Validate the complete artifact combination

The [checkpoint repository](https://huggingface.co/InstantX/InstantID) supplies the concrete adapter artifacts and usage context. The base generator, identity-conditioning components, landmark path, and face-feature extractor all participate in the result. Matching a tensor dimension does not establish that an arbitrary face encoder produces the feature representation expected by the adapter. Likewise, a conditioning scale is a contribution parameter rather than a calibrated identity-confidence score or a guarantee that every visible detail will remain unchanged.

## Evaluate resemblance and geometry separately

Use reference examples with explicit selected faces and compare identity resemblance, landmark alignment, and prompt adherence as separate outcomes. Keep the generated image and its input evidence available for inspection. Existing guides on [dataset identity relationships](/journal/data-guide-coco-instance-caption-identities/) and [artifact validation](/journal/safetensors-artifact-validation/) provide context. InstantID's distinctive integration obligation is preserving several linked but different inputs: who was selected, which identity vector was extracted, which spatial condition was supplied, and which compatible model components turned those conditions into an image.
