HairFastGAN: Realistic and Robust Hair Transfer with a Fast Encoder-Based Approach
Maxim Nikolaev, Mikhail Kuznetsov, Dmitry P. Vetrov, Aibek Alanov
Abstract
Our paper addresses the complex task of transferring a hairstyle from a reference image to an input photo for virtual hair try-on. This task is challenging due to the need to adapt to various photo poses, the sensitivity of hairstyles, and the lack of objective metrics. The current state of the art hairstyle transfer methods use an optimization process for different parts of the approach, making them inexcusably slow. At the same time, faster encoder-based models are of very low quality because they either operate in StyleGAN's W+ space or use other low-dimensional image generators. Additionally, both approaches have a problem with hairstyle transfer when the source pose is very different from the target pose, because they either don't consider the pose at all or deal with it inefficiently. In our paper, we present the HairFast model, which uniquely solves these problems and achieves high resolution, near real-time performance, and superior reconstruction compared to optimization problem-based methods. Our solution includes a new architecture operating in the FS latent space of StyleGAN, an enhanced inpainting approach, and improved encoders for better alignment, color transfer, and a new encoder for post-processing. The effectiveness of our approach is demonstrated on realism metrics after random hairstyle transfer and reconstruction when the original hairstyle is transferred. In the most difficult scenario of transferring both shape and color of a hairstyle from different images, our method performs in less than a second on the Nvidia V100. Our code is available at https://github.com/AIRI-Institute/HairFastGAN.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext efe2d160-2f73-4dc2-ae05-d0ef3e48b58aCited by top-tier papers6
- Stable-Hair: Real-World Hair Transfer via Diffusion ModelYuxuan Zhang, Qing Zhang, Yiren Song, Jichao Zhang et al.AAAI 2025 · 37 citations
- HairDiffusion: Vivid Multi-Colored Hair Editing via Latent DiffusionYu Zeng, Yang Zhang, Jiachen Liu, Linlin Shen et al.NeurIPS 2024 · 9 citations
- What to Preserve and What to Transfer: Faithful, Identity-Preserving Diffusion-based Hairstyle TransferChaeyeon Chung, Sunghyun Park, Jeongho Kim, Jaegul ChooAAAI 2025 · 6 citations
- HairShifter: Consistent and High-Fidelity Video Hair Transfer via Anchor-Guided AnimationWangzheng Shi, Yinglin Zheng, Yuxin Lin, Jianmin Bao et al.ACM MM 2025
- 3DGH: 3D Head Generation with Composable Hair and FaceChengan He, Junxuan Li, Tobias Kirschstein, Artem Sevastopolsky et al.SIGGRAPH 2025
Builds on17
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Image2StyleGAN: How to Embed Images Into the StyleGAN Latent Space?Rameen Abdal, Yipeng Qin, Peter WonkaICCV 2019 · 1,195 citations
- Efficient Geometry-aware 3D Generative Adversarial NetworksEric R. Chan, Connor Z. Lin, Matthew A. Chan, Koki Nagano et al.CVPR 2022 · 984 citations
- StyleNeRF: A Style-based 3D Aware Generator for High-resolution Image SynthesisJiatao Gu, Lingjie Liu, Peng Wang, Christian TheobaltICLR 2022 · 622 citations
- SC-FEGAN: Face Editing Generative Adversarial Network With User's Sketch and ColorYoungjoo Jo, Jongyoul ParkICCV 2019 · 325 citations
Related papers
- StyleGAN Salon: Multi-View Latent Optimization for Pose-Invariant Hairstyle TransferSasikarn Khwanmuang, Pakkapon Phongthawee, Patsorn Sangkloy, Supasorn SuwajanakornCVPR 2023
- HairNeRF: Geometry-Aware Image Synthesis for Hairstyle TransferSeunggyu Chang, Gihoon Kim, Hayeon KimICCV 2023 · 11 citations
- StyleAvatar: Real-time Photo-realistic Portrait Avatar from a Single VideoLizhen Wang, Xiaochen Zhao, Jingxiang Sun, Yuxiang Zhang et al.SIGGRAPH 2023 · 49 citations
- AgileGAN: stylizing portraits by inversion-consistent transfer learningGuoxian Song, Linjie Luo, Jing Liu, Wan-Chun Ma et al.SIGGRAPH 2021 · 80 citations
- TryOnGAN: body-aware try-on via layered interpolationKathleen M. Lewis, Srivatsan Varadharajan, Ira Kemelmacher-ShlizermanSIGGRAPH 2021 · 86 citations
