End-to-End Photo-Sketch Generation via Fully Convolutional Representation Learning

Liliang Zhang, Liang Lin, Xian Wu, Shengyong Ding, Lei ZhangICMR 2015 · DOI

TL;DR

This paper introduces a novel end-to-end deep learning approach for automatically generating realistic sketches from photographs. By employing a fully convolutional neural network (FCN) and a joint generative-discriminative training objective, the model effectively captures identity details while reducing the visual gap between photos and sketches, leading to state-of-the-art performance in both generation and sketch-based face verification.

What Problem Does This Paper Address?

Sketch-based face recognition is a challenging task due to the significant visual differences between photographs and hand-drawn sketches. While sketches are useful for tasks like image retrieval and assisting law enforcement, manually creating them is time-consuming. Existing methods often rely on synthesizing sketches from exemplars, which can be computationally expensive and may struggle to preserve fine details and individual identity. This paper aims to bridge this gap by developing an automated, end-to-end system that directly transforms photos into detailed, identity-preserving sketches.

Methods

The core of this work is a fully convolutional neural network (FCN). Unlike traditional CNNs that often end with fully connected layers for classification, an FCN consists solely of convolutional layers, allowing it to process input images of arbitrary size and produce pixel-wise outputs. This architecture is well-suited for image-to-image translation tasks like photo-to-sketch generation.

The training objective is a novel joint generative-discriminative formulation:

  • Generative Loss ($L_{gen}$): This term encourages the generated sketch to be as close as possible to the ground-truth artist-drawn sketch, ensuring the model learns the "sketching" style. It's a pixel-wise difference between the generated and ground-truth sketches.
  • Discriminative Regularizer ($L_{discrim}$): This is the key innovation for preserving identity. It penalizes generated sketches of one person from being too similar to generated sketches of other individuals. This forces the model to learn representations that are discriminative of identity.

The authors also incorporate additional XY channels into the input image. These channels encode the spatial coordinates of each pixel, providing the network with explicit positional information, which they found significantly improves results.

Datasets

The primary dataset used for training and evaluation is the CUHK Face Sketch Database. This dataset contains pairs of face photos and corresponding hand-drawn sketches. The authors used 88 pairs for training and 100 for testing.

Key Insights and Ideas

  • FCNs for Image-to-Image Translation: The paper demonstrates the power of FCNs for direct, end-to-end image transformation tasks, moving beyond their typical use in segmentation or classification.
  • Joint Generative-Discriminative Training for Identity Preservation: The discriminative regularizer is crucial. It highlights that simply making a sketch look "realistic" isn't enough; it must also retain the unique identity of the person, which is vital for applications like face verification.
  • Spatial Coordinates as Input: Adding XY coordinate channels is a simple yet effective trick to provide the network with explicit spatial context, improving its ability to learn location-specific features.
  • End-to-End Efficiency: The FCN approach allows for efficient inference, as the processing time is independent of the size of the training dataset, unlike synthesis-based methods.

Key Results

  • Photo-Sketch Generation: The generated sketches are qualitatively shown to retain more fine-grained details (e.g., specific hair strands, eye shapes) compared to previous synthesis-based methods, as illustrated in Figure 3.
  • Face Sketch Verification: The generated pseudo-sketches significantly reduce the modality gap between photos and sketches. When used in a sketch-based face verification system, the proposed method achieves 100% accuracy on the first guess (Rank 1) on the CUHK dataset, outperforming previous state-of-the-art methods.
  • Generalization: The model shows good generalization ability, achieving high accuracy with a small number of training samples (e.g., 100% Rank 1 accuracy with only 27 training samples).
  • Network Architecture: Deeper networks (more layers) and networks with more filters generally lead to better performance, with the "medium network" offering a good balance between effectiveness and efficiency.

Limitations and Future Work

  • Edge Sharpness: The authors acknowledge that their synthesized pseudo-sketches might have less sharp edges and contours compared to previous methods.
  • Dataset Bias: The current experiments are limited to Asiatic face images, which may restrict the model's generalization ability to other racial groups.
  • Future Work: The authors plan to improve the loss function, experiment with more diverse databases, and explore connections to non-photorealistic rendering techniques.

Summary updated

BibTeX
@inproceedings{zhang2015end,
  author = {Liliang Zhang and Liang Lin and Xian Wu and Shengyong Ding and Lei Zhang},
  title = {{End-to-End Photo-Sketch Generation via Fully Convolutional Representation Learning}},
  booktitle = {ICMR},
  year = {2015},
  doi = {10.1145/2671188.2749321},
}
Figure