huggingface / huggingface/diffusers

ConsistentID: Portrait Generation with Multimodal Fine-Grained Identity Preservation

Open
#7,955 2 comments 0 reactions 0 assignees View on GitHub
community-examples contributions-welcome stale
Dominant language
Python
Stars
34.5k
Forks
7.3k
Avg merge
3d 3h
Merged PRs (30d)
91

Description

### Model/Pipeline/Scheduler description

Existing methods for facial identity transfer for diffusion denoising image generation models face challenges in achieving high fidelity and detailed identity (ID) consistency, primarily due to insufficient fine-grained control over facial areas and the lack of a comprehensive strategy for ID preservation by fully considering intricate facial details. To address these limitations, the authors introduce ConsistentID, an innovative method crafted for diverse identity-preserving portrait generation under fine-grained multimodal facial prompts, utilizing only a single reference image.

ConsistentID is comprised of three key components:
- A fine-tuned IP-Adapter-FaceID-Plus module to capture the overall facial context from the reference image.
- Expanded textual descriptions of generated from the reference face image using LLAVA 1.5 to further refine facial features.
- An ID-preservation network injecting Perceiver-remapped CLIP embeddings of separated facial regions into the embeddings of the expanded text prompt, optimized through the facial attention localization strategy aimed at preserving ID consistency in facial regions.

Together, these components significantly enhance the accuracy of ID preservation by introducing fine-grained multimodal ID information from facial regions.

### Open source status

- [X] The model implementation is available.
- [X] The model weights are available (Only relevant if addition is not a scheduler).

### Provide useful links for the implementation

Arxiv: https://arxiv.org/pdf/2404.16771
Github: https://github.com/JackAILab/ConsistentID
Contact: @jackailab

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked ConsistentID paper and inspecting the linked GitHub implementation to understand the model components and required weights. Compare its integration needs with the existing Diffusers model and pipeline conventions; done means the method is available through Diffusers with its documented weights and behavior covered by appropriate validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.