InstantID

A local AI portrait generator that preserves facial identity from one photo, supports text-controlled styles and works with SDXL without personal fine-tuning.

Screenshot of InstantID website

InstantID generates personalized portraits from a single reference photo without training a model for each person. Creators and developers can retain a person's facial identity while changing the image through text prompts. Its required InsightFace face models are restricted to non-commercial research.

  • Portrait styles and poses: Generate realistic or stylized images with different poses and scenes while retaining resemblance to the reference face.
  • Composition controls: Combine identity guidance with compatible ControlNets, including canny and depth, for control over the generated scene.
  • Multiple references: Use one photo or combine facial information from several reference images.
  • Style and speed integrations: InstantStyle is compatible for style transfer, while LCM-LoRA and OneDiff offer generation acceleration.

The Python code runs locally and includes a Gradio interface. It works with Hugging Face Diffusers and SDXL; the project also describes compatibility with SD1.5. A hosted Hugging Face Spaces demo provides another way to try generation.

The code is open source under Apache 2.0, which permits academic and commercial use. That license doesn't remove the separate non-commercial research restriction on the InsightFace face models.

InstantID is distributed through source installation and downloadable adapter checkpoints. The project licensing notice gives the code Apache 2.0 terms, but restricts both the released InstantID checkpoints and the required InsightFace face models to research use.

Similar to InstantID