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

Yuxuan Zhang, Qing Zhang, Yiren Song, Jichao Zhang, Hao Tang +1 more
7/19/2024
cs.CV

No official code found. Best implementation: Xiaojiu-z/Stable-Hair (538 stars, Apache-2.0, last commit 2025-03-14).

Abstract

Current hair transfer methods struggle to handle diverse and intricate hairstyles, limiting their applicability in real-world scenarios. In this paper, we propose a novel diffusion-based hair transfer framework, named \textit{Stable-Hair}, which robustly transfers a wide range of real-world hairstyles to user-provided faces for virtual hair try-on. To achieve this goal, our Stable-Hair framework is designed as a two-stage pipeline. In the first stage, we train a Bald Converter alongside stable diffusion to remove hair from the user-provided face images, resulting in bald images. In the second stage, we specifically designed a Hair Extractor and a Latent IdentityNet to transfer the target hairstyle with highly detailed and high-fidelity to the bald image. The Hair Extractor is trained to encode reference images with the desired hairstyles, while the Latent IdentityNet ensures consistency in identity and background. To minimize color deviations between source images and transfer results, we introduce a novel Latent ControlNet architecture, which functions as both the Bald Converter and Latent IdentityNet. After training on our curated triplet dataset, our method accurately transfers highly detailed and high-fidelity hairstyles to the source images. Extensive experiments demonstrate that our approach achieves state-of-the-art performance compared to existing hair transfer methods. Project page: \textcolor{red}{\url{https://xiaojiu-z.github.io/Stable-Hair.github.io/}}

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Pytorch Implementation of: "Stable-Hair: Real-World Hair Transfer via Diffusion Model" (AAAI 2025)

53862Shell, PythonJul 16, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2024stablehair,
  title  = {Stable-Hair: Real-World Hair Transfer via Diffusion Model},
  author = {Yuxuan Zhang and Qing Zhang and Yiren Song and Jichao Zhang and Hao Tang and Jiaming Liu},
  year   = {2024},
  eprint = {2407.14078},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.14078v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.14078.svg)](https://codeofpaper.com/paper/2407.14078)

Discussion