Skip to content

About

Official DuoPortrait dual-identity portrait workflows, InstantID & PuLID prompt recipes, and technical documentation for DuoPortrait (https://duoportrait.com).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

DuoPortrait Technical Documentation & Prompt Engineering Hub

Live Studio Docs License: MIT

A photo of us, anywhere. — Synthesizing authentic, high-fidelity dual portraits from two separate individual photos with zero identity leakage and warm cinematic film tone.

⚡ Launch DuoPortrait Studio (duoportrait.com)

Welcome to the official developer documentation, prompt engineering recipes, and pipeline architecture guides for DuoPortrait.

DuoPortrait solves a fundamental challenge in generative vision: taking two independent portrait photographs taken under completely different lighting conditions, angles, and camera profiles, and seamlessly compositing them into a single, cohesive, four-variation Polaroid photograph as if both subjects were physically present together in the same space.


Core Engineering Pillars

+-------------------------------------------------------------------------------+
|                             DuoPortrait Architecture                          |
+-----------------------+-------------------------------+-----------------------+
|  1. Identity Control  |     2. Lighting Harmony       |   3. Film Synthesis   |
|                       |                               |                       |
|  * InsightFace align  |  * Dual shadow harmonization  |  * Wong Kar-wai tone  |
|  * InstantID guidance |  * Ambient light bounce match |  * Analog grain model |
|  * PuLID cross-attn   |  * Mutual occlusion depth     |  * Polaroid 4-roll    |
+-----------------------+-------------------------------+-----------------------+

1. Dual-Identity Preservation

Standard image-to-image or single-subject LoRA adapters fail when applied to two simultaneous subjects; identity cross-talk frequently blurs facial distinctiveness or swaps attributes. DuoPortrait utilizes a partitioned cross-attention matrix combining InstantID facial landmark projectors and PuLID contrastive embedding adapters, routing identity tokens to dedicated subject bounding boxes with strict separation.

2. Multi-Subject Contextual Cohesion

Rather than relying on flat collage cutouts, our pipeline employs FLUX Kontext adapters to recalculate light interaction between subjects:

  • Mutual shadowing: When subject A stands beside subject B, correct ray-cast shadowing falls realistically across shoulder and cheek contours.
  • Ambient color bleed: Saturated elements (e.g. a red silk kimono or burgundy velvet jacket) cast appropriate diffuse bounces onto neighboring skin tones.

3. Polaroid Aesthetic & Film Science

Each generation yields a collectible four-variation Polaroid sheet rendered in a warm, textured color palette inspired by vintage cinema (Wong Kar-wai, Kodachrome 64, and Fujifilm Pro 400H).


Primary Use Cases

Mode Target User Intent Visual & Emotional Direction
Long-Distance Couples Partners living in different cities or countries who lack recent photos together. Sweet, cinematic, warm morning sunlight, candid intimacy.
Remembrance & Healing Bringing a departed parent, grandparent, or child into a modern family portrait. Dignified, quiet, restrained, respectful lighting, timeless framing.
Fan & Memorial Reunion Tasteful, consent-gated portraits celebrating historical or artistic inspirations. Dreamy, artistic, editorial, vintage salon aesthetic.

Documentation Directory

Explore the complete technical guides and prompt engineering specifications:


Official Links


License

The documentation, prompt recipes, and workflow architectures are open-sourced under the MIT License. Commercial access to the high-throughput GPU synthesis pipeline is provided via duoportrait.com.

About

Official DuoPortrait dual-identity portrait workflows, InstantID & PuLID prompt recipes, and technical documentation for DuoPortrait (https://duoportrait.com).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages