Abstract
DiffLocks is a novel framework designed to reconstruct high-fidelity 3D hair geometry from a single RGB image. By predicting a dense "scalp texture map" of hair strand latent codes, the system overcomes the limitations of traditional proxy-based methods. Leveraging a massive new synthetic dataset of 40,000 hairstyles and a diffusion-based transformer architecture, DiffLocks recovers complex textures—such as afro-hair and balding patterns—that were previously impossible to reconstruct from a single view. The pipeline is highly efficient, producing engine-ready 3D hair in approximately 2.33 seconds.
Introduction
Reconstructing 3D hair from a single image is a significant challenge in digital human modeling. Hair is geometrically complex, consisting of hundreds of thousands of individual strands with immense diversity in style, curliness, and density. Previous methods have struggled due to data scarcity and simplifying assumptions, such as using "guide strands" or 2D orientation maps. These simplifications often fail to capture the intricate spatial relationships of curly or highly textured hair, resulting in unrealistic reconstructions.
Methodology
DiffLocks introduces a three-stage pipeline that models individual strands directly, moving away from simplified proxies.
Strand Encoding and Scalp Representation
The process begins with Strand Encoding, where a Variational Autoencoder (VAE) compresses individual 3D hair strands (represented as 256 points) into compact 64-dimensional latent codes. These codes are then organized into a Scalp Texture Map. Instead of predicting a 3D volume, the model predicts a 256x256 map where each pixel corresponds to a location on the head and contains the latent code for the hair strand originating at that point.
Conditional Diffusion
The core of the system is an Hourglass Diffusion Transformer (HDiT). This model is conditioned on features extracted from the input image using a pretrained DINOv2 backbone. The diffusion model denoises a random starting state into a clean scalp texture map and a density map, which dictates hair growth patterns. A key technical innovation is the use of Perceptual Loss Scaling, which weights latent code dimensions based on their impact on the hair's visual appearance (e.g., curliness) rather than raw point positions.
Datasets and Training
To address the lack of paired 2D-3D data, the researchers created the DiffLocks Dataset, the largest synthetic hair dataset to date. It features 40,000 unique hairstyles generated using automated Blender geometry nodes. Each entry includes a high-quality RGB render and approximately 100,000 3D strands. The model was benchmarked against the standard Yuksel et al. dataset and tested on "in-the-wild" real-world photos to demonstrate its robust generalization capabilities.
Key Results
DiffLocks achieves state-of-the-art detail, becoming the first single-view method capable of reconstructing highly curled afro-hairstyles and realistic balding patterns. Quantitatively, it significantly outperforms existing leaders like HairStep and NeuralHDHair in precision and F-score.
Beyond accuracy, the pipeline is remarkably fast, generating a full head of hair in approximately 2.33 seconds on an NVIDIA H100. The resulting hair can be exported as an Alembic file and integrated directly into Unreal Engine for real-time physics simulation.
Conclusion and Future Work
DiffLocks represents a major leap forward in 3D hair reconstruction. While current limitations include the coverage of complex structured styles like braids or buns, the framework's success with diverse textures suggests it could be easily adapted for other facial hair, such as beards and eyebrows. Future work will focus on expanding the style library and improving pixel-to-pixel alignment with input images.
Summary updated