DeepSketchHair: Deep Sketch-Based 3D Hair Modeling

Yuefan Shen, Changgeng Zhang, Hongbo Fu, Kun Zhou, Youyi ZhengIEEE TVCG 2019 · DOI

Abstract

We present sketchhair, a deep learning based tool for interactive modeling of 3D hair from 2D sketches. Given a 3D bust model as reference, our sketching system takes as input a user-drawn sketch (consisting of hair contour and a few strokes indicating the hair growing direction within a hair region), and automatically generates a 3D hair model, which matches the input sketch both globally and locally. The key enablers of our system are two carefully designed neural networks, namely, S2ONet, which converts an input sketch to a dense 2D hair orientation field; and O2VNet, which maps the 2D orientation field to a 3D vector field. Our system also supports hair editing with additional sketches in new views. This is enabled by another deep neural network, V2VNet, which updates the 3D vector field with respect to the new sketches. All the three networks are trained with synthetic data generated from a 3D hairstyle database. We demonstrate the effectiveness and expressiveness of our tool using a variety of hairstyles and also compare our method with prior art.

Introduction

Modeling 3D hair is one of the most challenging tasks in digital human creation. Unlike skin or clothing, hair consists of thousands of individual strands with extreme geometric complexity and intricate mutual occlusions. Existing solutions generally fall into two camps: professional software that requires highly specialized skills, or image-based reconstruction methods that are "locked" to a specific reference photo and do not allow for creative, free-form design.

DeepSketchHair provides a middle ground: a system that is as intuitive as sketching on paper but produces the high-fidelity results expected in modern 3D applications. By utilizing a trio of specialized neural networks, the system bridges the gap between sparse user strokes and complex 3D volumetric structures, allowing even novices to design and edit realistic hair models in seconds.

Figure 1: DeepSketchHair transforms sparse 2D sketches (a) into detailed 3D hair models, shown here from front (b), back (c), and side (d) views.

Methodology

The core of DeepSketchHair is a multi-stage pipeline powered by three Generative Adversarial Networks (GANs). The system avoids the difficulty of direct 2D-to-3D mapping by introducing a dense 2D orientation field as an intermediate representation.

  1. S2ONet (Sketch-to-Orientation): This network takes a sparse user sketch (a red contour and a few blue directional strokes) and converts it into a dense 2D orientation field. This fills in the "gaps" between the user's sparse strokes.
  2. O2VNet (Orientation-to-Voxel): This network maps the dense 2D orientation field and a reference 3D bust depth map into a 3D volumetric vector field. It uses a hybrid architecture combining 2D convolutions (to preserve fine details) and 3D convolutions (to ensure volumetric consistency).
  3. V2VNet (Voxel-to-Voxel): To support multi-view editing, this network allows users to rotate the model and add new sketches. It updates the existing 3D vector field based on the new input, ensuring consistency across different viewpoints.
Figure 4: The DeepSketchHair pipeline overview, illustrating the single-view modeling (top) and multi-view modeling (bottom) stages.

Training and Datasets

The networks were trained using a synthetic dataset derived from a database of 653 3D strand-level hair models. To make the training data realistic, the authors developed an "image tracing" method to generate sparse sketch maps from dense 3D data, mimicking natural human sketching. Data augmentation, including random rotations and cropping, was used to help the networks generalize to different views and partial sketches.

Results and Discussion

DeepSketchHair is highly efficient, with S2ONet and O2VNet running in roughly 0.2s and 0.3s respectively. The final strand synthesis takes about 5 seconds. Qualitative comparisons show that DeepSketchHair produces smoother, more realistic results than previous state-of-the-art methods like HairGAN, especially in "noisy" regions or when dealing with complex curls.

A pilot study with five novices demonstrated that users could create complex, unique hairstyles in under 2 minutes with minimal training. The tool works effectively with real portrait photos, cartoon/anime images, and completely free-hand sketches.

Conclusion

While DeepSketchHair offers a powerful new way to model hair, it faces some limitations. The current 3D grid resolution (128x128x96) limits the capture of extremely fine details, such as tight curls in Afro-textured hair. Furthermore, the system's creativity is bounded by its training data. Future work may explore higher resolution grids and more immersive interfaces, such as sketching in Virtual Reality (VR).

Summary updated

BibTeX
@article{shen2019deepsketchhair,
  author = {Yuefan Shen and Changgeng Zhang and Hongbo Fu and Kun Zhou and Youyi Zheng},
  title = {{DeepSketchHair: Deep Sketch-Based 3D Hair Modeling}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2019},
  doi = {10.1109/tvcg.2020.2968433},
}
Figure