Convolutional Sketch Inversion

Yagmur Güçlütürk, Umut Güçlü, Rob van Lier, Marcel A. J. van Gerven · DOI

Abstract

This paper presents Convolutional Sketch Inversion (CSI), a deep learning framework designed to transform hand-drawn face sketches into photorealistic images. By utilizing a deep residual network architecture and a hybrid loss function—combining pixel-wise, perceptual (feature), and total variation losses—the model achieves robust performance under uncontrolled conditions, including varied poses, expressions, and lighting. Experimental results demonstrate a significant improvement in forensic identification accuracy, with line sketch inversion reaching 99.79% accuracy. The model also demonstrates versatility by reconstructing photorealistic portraits from historical sketches by artists such as Rembrandt and Van Gogh.

Introduction

Computer vision has achieved remarkable success in automated face recognition; however, "sketch inversion"—the process of reconstructing a realistic photograph from a hand-drawn sketch—remains a significant challenge. Historically, sketch inversion methods have been brittle, requiring highly controlled environments with perfectly frontal poses, neutral expressions, and uniform lighting. In real-world scenarios, such as forensic investigations or artistic analysis, sketches are often "in the wild," characterized by varied styles, messy lines, and non-standard perspectives.

This research introduces the Convolutional Sketch Inversion (CSI) model, which aims to bridge the gap between human-drawn representations and digital photography. By leveraging deep residual networks, the system can reconstruct recognizable faces from diverse sketch inputs, significantly boosting the utility of sketches in forensic identification and historical research.

Methodology

Network Architecture

The CSI framework utilizes three distinct Deep Neural Networks (DNNs), each optimized for a specific input style: Line, Grayscale, and Color. The architecture is based on a feed-forward design originally optimized for real-time style transfer. It consists of three primary components:

  1. Downsampling Stages: Three convolutional layers that compress the input sketch into a high-level feature representation.
  2. Residual Blocks: Five residual blocks that allow the network to learn complex, non-linear transformations while mitigating the vanishing gradient problem.
  3. Upsampling Stages: Three deconvolutional (transpose convolutional) layers that reconstruct the image back to its original resolution in the photographic domain.

Hybrid Loss Function

To ensure the generated images are both structurally accurate and visually realistic, the researchers employed a weighted combination of three loss functions:

  • Pixel Loss: A standard Euclidean distance metric used to maintain general color and shape alignment between the prediction and the ground truth.
  • Feature Loss (Perceptual Loss): Both the predicted image and the target photograph are passed through a pre-trained VGG-16 network. The activations at the relu2_2 layer are compared, forcing the model to prioritize high-level features (such as the specific geometry of an eye or nose) over raw pixel values.
  • Total Variation (TV) Loss: A regularization term used to smooth the output and reduce the "checkerboard" artifacts common in neural image generation.

Experimental Setup and Datasets

The models were trained using a "semi-simulated" approach, where over 202,000 celebrity images from the CelebA dataset were automatically converted into sketches using edge-aware filters and color-dodge blending. Testing was conducted across several diverse datasets:

  • LFW (Labeled Faces in the Wild): Used to evaluate performance against real-world photographic variations.
  • CUHK Face Sketch (CUFS): Provided 606 pairs of photos and professional hand-drawn sketches to test the model's ability to handle human artistic styles.
  • Historical Artifacts: Self-portraits by Rembrandt, Vincent van Gogh, and M.C. Escher were used to test the model's generalization to fine arts.

Results and Discussion

Forensic Identification Performance

The most striking result of the CSI model is its impact on forensic identification. When attempting to identify individuals from grayscale sketches within a database of 11,000 images, standard face recognition algorithms achieved a success rate of only 1.42%. However, after the sketches were processed through the CSI model, the identification accuracy rose to 73.81%. For line sketches, the results were even more profound, reaching a near-perfect 99.79% accuracy after inversion.

Model Comparison and Latent Information

Quantitative analysis using the Structural Similarity Index (SSIM) revealed that the Line Sketch model was the most effective, achieving an SSIM of 0.8583, compared to 0.6529 for Grayscale and 0.7154 for Color.

A key insight from this study is the presence of latent information within simple line drawings. Despite the absence of color or shading in the input, the DNN was able to accurately "hallucinate" skin tones and hair textures. This suggests that the network learned deep associations between specific facial structures and their corresponding photographic textures.

Limitations and Future Work

While the CSI model represents a significant advancement, it faces certain limitations. Because the training data relied on computer-generated sketches, the model occasionally struggles with the idiosyncratic quirks of human artists, such as heavy-handed strokes or non-standard shading. Additionally, while the model is adept at estimating skin tones, it may lack precision in specific color details when the input is purely monochromatic.

Future research will focus on generating training data that more closely mimics specific artistic styles and exploring the model's potential in cognitive neuroscience to better understand how the human brain completes facial information from minimal visual cues.

Conclusion

Convolutional Sketch Inversion provides a powerful "bridge" between the abstract world of sketches and the precise world of digital photography. By successfully inverting sketches in uncontrolled conditions, this technology offers a transformative tool for forensic science and the study of historical portraiture, turning simple doodles into recognizable human faces.

Summary updated

BibTeX
@inproceedings{gucluturk2016convolutional,
  author = {Yagmur Güçlütürk and Umut Güçlü and Rob van Lier and Marcel A. J. van Gerven},
  title = {{Convolutional Sketch Inversion}},
  booktitle = {Workshops @ ECCV},
  year = {2016},
  doi = {10.1007/978-3-319-46604-0\_56},
}
Figure