Stable-Hair: Real-World Hair Transfer via Diffusion Model

Yuxuan Zhang, Qing Zhang, Yiren Song, Jiaming Liu · DOI

Abstract

Hairstyle transfer is a challenging task in virtual try-on, requiring the preservation of facial identity and background while accurately replicating complex hair textures and structures. Traditional GAN-based methods often struggle with real-world variability, leading to artifacts and identity shifts. We present Stable-Hair, a diffusion-based framework that achieves high-fidelity hairstyle transfer. By standardizing source images into a "bald proxy" and employing a novel Latent ControlNet for feature injection, Stable-Hair maintains identity consistency and handles intricate hairstyles. Quantitative and qualitative evaluations demonstrate that Stable-Hair outperforms state-of-the-art methods in realism and identity preservation.

Introduction

Hairstyle transfer—moving hair from a reference image onto a source face—is a "boss level" task in computer vision. It requires manipulating non-rigid structures and intricate textures while perfectly preserving the source person's identity and background. Existing methods, mostly based on Generative Adversarial Networks (GANs), often fail in real-world scenarios. They struggle with complex poses, intricate hair textures (like braids or messy curls), and "color drift" where the skin tone or background changes during the transfer. Furthermore, GANs often require precise facial alignment or explicit masks, making them brittle when faced with diverse, unconstrained images.

Methods

Stable-Hair utilizes a two-stage pipeline that moves away from the rigid latent spaces of GANs toward the flexible, high-quality generation of Diffusion Models.

  1. Stage 1: The Bald Converter: Instead of trying to "overwrite" existing hair, the model first transforms the source image into a "bald proxy." This provides a clean, standardized baseline for the next step, eliminating the need to "blend" two different hairstyles.
  2. Stage 2: Hair Transfer & Integration:
    • Hair Extractor: A module specifically trained to encode the reference hairstyle's details and textures.
  3. Latent IdentityNet: This ensures the source face's identity and background remain consistent.
  4. Latent ControlNet: Traditional ControlNets operate in pixel space, which can lead to color inconsistencies. Stable-Hair's version operates within the latent space of the diffusion model, ensuring that the color and lighting of the source image are strictly preserved.

To train this, the authors developed an automated data generation pipeline using ChatGPT to generate text prompts and Stable Diffusion Inpainting to create synthetic "triplets" (Source Image, Bald Proxy, and Reference Image).

Key Results and Discussion

Stable-Hair outperformed existing state-of-the-art (SOTA) methods across almost every metric. It achieved a Frechet Inception Distance (FID) of 35.128, indicating significantly higher image realism than competitors. Identity similarity (IDS) scored 0.779, and hair similarity (CLIP-I) scored 0.434, confirming that the transferred hair is visually similar to the reference while preserving the source face.

Qualitative comparison of Stable-Hair results across various source images and reference hairstyles, demonstrating high fidelity and identity preservation.

Visual results show the model handling extreme cases—like transferring bright pink hair or complex updos—while maintaining the source image's lighting and skin texture perfectly.

Detailed view of hairstyle transfer results for male subjects, showing consistency across different reference styles.

The "bald state" approach acts as a universal baseline, treating hair transfer as a generative task on a clean canvas, which significantly improves stability.

Conclusion

Stable-Hair represents a significant advancement in hairstyle transfer by leveraging the flexibility of diffusion models and a novel latent control mechanism. By using a "bald proxy" approach, it simplifies the transfer process and achieves unprecedented fidelity in real-world scenarios. While challenges remain regarding hair accessories and computational cost, the framework sets a new standard for high-fidelity virtual try-on.

Summary updated

BibTeX
@inproceedings{zhang2025stable,
  author = {Yuxuan Zhang and Qing Zhang and Yiren Song and Jiaming Liu},
  title = {{Stable-Hair: Real-World Hair Transfer via Diffusion Model}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i10.33123},
}
Figure