Skip to main content
QUICK REVIEW

[Paper Review] SketchHairSalon: Deep Sketch-based Hair Image Synthesis

Chufeng Xiao, Yu Deng|arXiv (Cornell University)|Sep 16, 2021
Generative Adversarial Networks and Image SynthesisComputer Science40 references5 citations
TL;DR

SketchHairSalon proposes a two-stage deep learning framework for generating photo-realistic hair images directly from freehand colored sketches, bypassing the need for binary masks or orientation maps. By leveraging self-attention mechanisms and a new dataset of sketch-matte-image triplets, it achieves superior synthesis of complex hair structures and soft boundaries, outperforming existing methods in both qualitative and quantitative evaluations.

ABSTRACT

Recent deep generative models allow real-time generation of hair images from sketch inputs. Existing solutions often require a user-provided binary mask to specify a target hair shape. This not only costs users extra labor but also fails to capture complicated hair boundaries. Those solutions usually encode hair structures via orientation maps, which, however, are not very effective to encode complex structures. We observe that colored hair sketches already implicitly define target hair shapes as well as hair appearance and are more flexible to depict hair structures than orientation maps. Based on these observations, we present SketchHairSalon, a two-stage framework for generating realistic hair images directly from freehand sketches depicting desired hair structure and appearance. At the first stage, we train a network to predict a hair matte from an input hair sketch, with an optional set of non-hair strokes. At the second stage, another network is trained to synthesize the structure and appearance of hair images from the input sketch and the generated matte. To make the networks in the two stages aware of long-term dependency of strokes, we apply self-attention modules to them. To train these networks, we present a new dataset containing thousands of annotated hair sketch-image pairs and corresponding hair mattes. Two efficient methods for sketch completion are proposed to automatically complete repetitive braided parts and hair strokes, respectively, thus reducing the workload of users. Based on the trained networks and the two sketch completion strategies, we build an intuitive interface to allow even novice users to design visually pleasing hair images exhibiting various hair structures and appearance via freehand sketches. The qualitative and quantitative evaluations show the advantages of the proposed system over the existing or alternative solutions.

Motivation & Objective

  • To eliminate the need for user-provided binary masks in sketch-based hair image synthesis, which are labor-intensive and constrain soft hair boundaries.
  • To improve the modeling of complex hair structures—such as wavy, braided, or occluded wisps—by using colored sketches as direct input instead of orientation maps.
  • To develop a system that enables novice users to create diverse, realistic hairstyles through intuitive freehand sketching with minimal effort.
  • To address long-range dependencies among hair strokes by integrating self-attention modules into both stages of the network.
  • To release a new dataset of 1,000+ annotated hair sketch-image pairs with corresponding hair mattes to support future research.

Proposed method

  • A two-stage framework: first, a sketch-to-matte network generates a soft hair matte from a colored sketch (with optional non-hair strokes), reducing ambiguity in hair region definition.
  • Second, a sketch-to-image network synthesizes a photo-realistic hair image using the input sketch and the generated matte, with color strokes controlling local appearance.
  • Self-attention modules are integrated into both networks to model long-range dependencies among hair strokes, improving coherence and occlusion modeling.
  • Two sketch auto-completion strategies are introduced: one for completing repetitive braided patterns and another for completing missing hair stroke segments, reducing user input burden.
  • A new dataset of 1,000+ sketch-matte-image triplets is constructed with manual annotations for hair structure and appearance.
  • The framework is trained using adversarial loss and perceptual loss to ensure high realism and structural fidelity.

Experimental results

Research questions

  • RQ1Can freehand colored sketches alone effectively convey hair structure, appearance, and shape without requiring binary masks or orientation maps?
  • RQ2How can deep networks model long-range dependencies among hair strokes to preserve coherent wisps and occlusion relationships?
  • RQ3Can self-attention mechanisms improve the synthesis of complex hair structures compared to standard convolutional layers?
  • RQ4To what extent can sketch auto-completion reduce user workload while maintaining visual quality?
  • RQ5How does the proposed method compare quantitatively and qualitatively to existing sketch-based hair synthesis approaches?

Key findings

  • The proposed method significantly outperforms existing sketch-based hair synthesis methods in both qualitative and quantitative evaluations, especially for complex hairstyles with occlusions and layered wisps.
  • Ablation studies show that removing self-attention modules leads to rough, incoherent results with poor wisp coherence and incorrect occlusion, proving their necessity.
  • The inclusion of non-hair strokes as conditional inputs improves matte generation accuracy, especially in complex scenes with overlapping features.
  • The sketch auto-completion mechanisms effectively reduce user input effort, particularly for repetitive patterns like braids and long strokes.
  • Quantitative results on the proposed dataset show that the full model achieves the highest FID and LPIPS scores among all compared baselines, indicating superior image quality and realism.
  • The system successfully generates soft hair boundaries that better match real hair diffusion into the background, unlike binary mask-based approaches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.