Reference-Based Sketch Image Colorization Using Augmented-Self Reference and Dense Semantic Correspondence

Junsoo Lee, Eungyeup Kim, Yunsung Lee, Dongjun Kim, Jaehyuk Chang, Jaegul Choo

Abstract

This paper tackles the automatic colorization task of a sketch image given an already-colored reference image. Colorizing a sketch image is in high demand in comics, animation, and other content creation applications, but it suffers from information scarcity of a sketch image. To address this, a reference image can render the colorization process in a reliable and user-driven manner. However, it is difficult to prepare for a training data set that has a sufficient amount of semantically meaningful pairs of images as well as the ground truth for a colored image reflecting a given reference. To tackle this challenge, we propose to utilize the identical image with geometric distortion as a virtual reference, which makes it possible to secure the ground truth for a colored output image. Furthermore, it naturally provides the ground truth for dense semantic correspondence, which we utilize in our internal attention mechanism for color transfer from reference to sketch input. We demonstrate the effectiveness of our approach in various types of sketch image colorization via quantitative as well as qualitative evaluation against existing methods.

Introduction

Colorizing a sketch is a "one-to-many" problem: a single line drawing could be colored in infinite ways. While providing a reference image (e.g., "color this character like this photo") helps guide the process, it introduces two major hurdles:

  1. Data Scarcity: There are no massive datasets containing triplets of (Sketch, Semantically Similar Reference, and Ground Truth Output).
  2. Correspondence Gap: Sketches lack the texture and pixel intensity of photos. Mapping a color from a reference's "left eye" to a sketch's "left eye" is difficult if the two images have different proportions or orientations.

Existing methods often rely on hand-crafted features or pre-trained networks that do not translate well across different domains, such as moving from real photos to anime.

Proposed Methodology

The authors propose a two-pronged solution to these challenges, centered on self-supervision and dense semantic correspondence.

Augmented-Self Reference Generation

To bypass the lack of training triplets, the authors create them synthetically from a single color image ($I$).

  • The Sketch ($I_s$): Extracted from the original image using an outline extractor.
  • The Reference ($I_r$): Created by applying color perturbation (random noise to prevent the model from just memorizing specific colors) and geometric distortion (using Thin Plate Splines or TPS).

Because $I_r$ is a distorted version of the original image, the researchers have a "virtual" reference where they know exactly which pixel in the reference corresponds to which pixel in the sketch.

Spatially Corresponding Feature Transfer (SCFT)

The model uses an attention-based module to "query" the reference image. For every pixel in the sketch, the SCFT module looks at the reference to find the most semantically similar region.

Overview of the proposed framework, featuring the Augmented-Self Reference Generation and the SCFT Module.

A key innovation is the Similarity-Based Triplet Loss. Since the authors know the ground-truth geometric distortion applied during the augmentation step, they can directly supervise the attention mechanism. This forces the model to learn where to look for color rather than just guessing.

Experimental Results

The model was evaluated across a diverse range of domains, including ImageNet (Cats, Dogs, Cars), CelebA (Human Faces), Tag2pix (Anime), and Edges→Shoes.

Quantitative and Qualitative Evaluation

The model significantly outperformed baselines such as Style2Paints and Lee et al. in FID scores (measuring image realism). For example, on the CelebA dataset, it achieved an FID of 47.15 compared to the next best baseline at 68.43. The authors also introduced SC-PSNR (Semantically Corresponding PSNR) to evaluate color accuracy only within semantically matched patches, as standard PSNR fails when output shapes do not match the reference.

Qualitative comparison of the proposed method against state-of-the-art baselines across diverse datasets.

Qualitatively, the results show much higher color fidelity. While baseline models often "bleed" colors or fail to transfer specific colors from the reference, this model accurately places the reference colors into the correct semantic regions of the sketch. In human evaluations, the proposed method was preferred for both "Colorization Quality" and "Reflection of Reference" by a wide margin.

Conclusion

By utilizing self-augmented training and direct correspondence supervision, this framework effectively addresses the data scarcity and semantic matching problems in sketch colorization. While the model may still face challenges with extreme pose mismatches or highly cluttered backgrounds, the dense correspondence mechanism shows great promise for extension to video colorization and general exemplar-based image translation.

Summary updated

BibTeX
@inproceedings{lee2020reference,
  author = {Junsoo Lee and Eungyeup Kim and Yunsung Lee and Dongjun Kim and Jaehyuk Chang and Jaegul Choo},
  title = {{Reference-Based Sketch Image Colorization Using Augmented-Self Reference and Dense Semantic Correspondence}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=OPS5nnR44_},
}
Figure