SPColor: Semantic Prior Guided Exemplar-based Image Colorization

Siqi Chen, Xueming Li, Xianlin Zhang, Mingdao Wang, Yu Zhang +1 more
4/13/2023
5 citations
cs.CV

Official code: viector/spcolor (5 stars, Python, MIT, last commit 2024-01-06).

Abstract

Exemplar-based image colorization aims to colorize a target grayscale image based on a color reference image, and the key is to establish accurate pixel-level semantic correspondence between these two images. Previous methods search for correspondence across the entire reference image, and this type of global matching is easy to get mismatch.

Show full abstract

We summarize the difficulties in two aspects: (1) When the reference image only contains a part of objects related to target image, improper correspondence will be established in unrelated regions. (2) It is prone to get mismatch in regions where the shape or texture of the object is easily confused. To overcome these issues, we propose SPColor, a semantic prior guided exemplar-based image colorization framework. Different from previous methods, SPColor first coarsely classifies pixels of the reference and target images to several pseudo-classes under the guidance of semantic prior, then the correspondences are only established locally between the pixels in the same class via the newly designed semantic prior guided correspondence network. In this way, improper correspondence between different semantic classes is explicitly excluded, and the mismatch is obviously alleviated. Besides, to better reserve the color from reference, a similarity masked perceptual loss is designed. Noting that the carefully designed SPColor utilizes the semantic prior provided by an unsupervised segmentation model, which is free for additional manual semantic annotations. Experiments demonstrate that our model outperforms recent state-of-the-art methods both quantitatively and qualitatively on public dataset.

View on arXivView PDF

Code Implementations(1)

viector/spcolorOfficial100%
MIT
51Python, Jupyter NotebookNov 29, 20232 years agoMIT

Similar Papers

Cite this paper

@article{chen2023spcolor,
  title  = {SPColor: Semantic Prior Guided Exemplar-based Image Colorization},
  author = {Siqi Chen and Xueming Li and Xianlin Zhang and Mingdao Wang and Yu Zhang and Yue Zhang},
  year   = {2023},
  eprint = {2304.06255},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.06255v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.06255.svg)](https://codeofpaper.com/paper/2304.06255)

Discussion