Fast Preprocessing for Robust Face Sketch Synthesis

Yibing Song, Jiawei Zhang, Linchao Bao, Qingxiong Yang

Abstract

Exemplar-based face sketch synthesis is a powerful tool for generating artistic portraits, yet its performance often degrades under non-ideal lighting conditions. This paper proposes Bidirectional Luminance Remapping (BLR), a computationally efficient preprocessing framework designed to harmonize the luminance statistics between input photographs and training datasets. By adjusting both the input image and the training database to a common lighting space, BLR significantly improves the robustness and visual quality of state-of-the-art synthesis algorithms.

Introduction

Turning a photograph into a hand-drawn sketch typically involves exemplar-based methods that match local image patches to a database of photo-sketch pairs. While effective on datasets with controlled, uniform lighting (such as the CUHK Face Sketch Dataset), these methods frequently fail in real-world scenarios. Variations in lighting, such as heavy shadows or high-contrast backgrounds, distract standard distance metrics like $L_1$ or $L_2$ norms, leading to "ghosting" artifacts and loss of structural detail.

The Challenge of Lighting and Backgrounds

The primary difficulty in face sketch synthesis lies in the mismatch between the query photo and the training examples. Most training sets feature clean, neutral backgrounds. When a user provides a photo with a complex or high-contrast background, the patch-matching process struggles to distinguish between the face and its surroundings.

Standard synthesis methods often fail when presented with complex backgrounds, resulting in significant artifacts.

As shown in the figure above, high-contrast boundaries—such as those around the ears and hair—often disappear or become blocky when the background statistics do not align with the training data.

Bidirectional Luminance Remapping (BLR)

To address these issues, the authors introduce BLR, which operates on the principle of "meeting in the middle." Rather than attempting a perfect restoration of the input photo, the method adjusts both the input and the training set.

  1. Input Photo Remapping: The algorithm uses facial landmarks to identify the face region and performs a global linear remapping to match the mean and variance of the training set's face statistics.
  2. Training Photo Remapping: This is the "bidirectional" component. Using pre-computed alpha mattes, the algorithm adjusts the background of the training images to match the background of the adjusted input photo. This ensures local contrast consistency during patch matching.
  3. Local Adjustments: For faces with side lighting, the method leverages facial symmetry. It identifies matching patches from the well-lit side to guide a local gamma correction on shadowed regions.
  4. Pose Alignment: Affine warping based on landmarks is used to normalize head tilts into a standard frontal pose before synthesis.

Experimental Results

The BLR framework was evaluated against several benchmarks, including the AR, FERET, and CUHK datasets.

Robustness and Quality

Integrating BLR consistently improved the performance of established methods such as MRF, MWF, and SSD. Qualitative evaluations demonstrate that BLR effectively eliminates the artifacts associated with lighting variations and complex backgrounds.

High-quality results achieved by aligning lighting and background statistics through the BLR framework.

Computational Efficiency

A key advantage of BLR is its speed. Because landmark detection and alpha matting for the training set are performed offline, the online preprocessing for a new image is nearly instantaneous. For an MRF-based synthesis taking approximately 38 seconds, BLR adds only 0.2 seconds of overhead.

Conclusion

Bidirectional Luminance Remapping provides a simple yet highly effective solution to the lighting sensitivity of exemplar-based sketch synthesis. By focusing on the relationship between the face and its background, the method achieves significant gains in robustness without the need for complex, time-consuming optimization or retraining. Future work may involve integrating these luminance remapping principles into deep learning architectures to further enhance generative models.

Summary updated

BibTeX
@inproceedings{song2017fast,
  author = {Yibing Song and Jiawei Zhang and Linchao Bao and Qingxiong Yang},
  title = {{Fast Preprocessing for Robust Face Sketch Synthesis}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/632},
}
Figure