Real-time user-guided image colorization with learned deep priors

Richard Zhang, Jun-Yan Zhu, Phillip Isola, Xinyang Geng, Angela S. Lin, Tianhe Yu, Alexei A. Efros

Colorizing grayscale images is a classic "ill-posed" problem in computer vision. Because a single grayscale value can represent many different colors in the real world—a shirt could be blue, red, or green—fully automatic systems often produce conservative, "drab" results. Conversely, traditional user-guided systems require tedious manual labor, often demanding dozens of precise strokes from an expert user. This paper introduces a deep learning system that bridges this gap, enabling novice users to produce photorealistic colorizations in real-time using sparse "hints."

The Challenge of Semantic Colorization

Existing solutions typically fall into two categories: fully automatic methods and stroke-based manual methods. Automatic methods are fast but lack user control, while manual methods rely on low-level features like edge detection to spread color. These manual systems often fail to understand the "content" of an image, requiring the user to be an expert at selecting natural-looking shades and placing strokes perfectly to avoid color bleeding.

The authors propose a system that leverages high-level semantic "priors"—knowledge of what objects are and what colors they typically possess—learned from millions of images. By combining these priors with minimal user input, the system allows for artistic expression without the need for professional-level precision.

Methodology: Learning to Propagate Hints

The core of the system is a Convolutional Neural Network (CNN) based on a U-Net architecture. It features 10 convolutional blocks and utilizes dilated (atrous) convolutions in the bottleneck to increase the receptive field without sacrificing spatial resolution.

To train the network to respond to user interaction without having a massive dataset of real human-guided sessions, the authors developed a simulated training strategy. They randomly sampled points from ground-truth color images using a geometric distribution, favoring the center of the image where users are statistically more likely to provide input. This allowed the network to learn how to propagate a single color point across an entire semantic region (e.g., clicking "blue" on one part of the sky fills the whole sky).

Additionally, the system predicts a probability distribution over colors for every pixel. This enables a "Color Recommendation" feature in the UI, suggesting likely natural colors to the user and further lowering the barrier to entry for non-artists.

Key Results and Real-World Application

The system was trained on the ImageNet dataset (1.3M images) to learn a wide variety of object semantics. In evaluation, the system demonstrated significant improvements over fully automatic baselines:

  • Human Realism: In an Amazon Mechanical Turk (AMT) study, the user-guided results fooled humans 30.04% of the time, compared to 18.58% for automatic methods.
  • Efficiency: Novice users were able to produce high-quality colorizations of complex images in under one minute.
  • Accuracy: While the model is competitive even with zero inputs (PSNR 24.43), adding just a few ground-truth points causes accuracy to jump significantly (reaching 37.70 with sufficient hints).

Conclusion

By moving from hand-defined propagation rules to learned semantic priors, this system transforms colorization from a chore into an interactive, real-time creative process. While challenges remain regarding unintended color bleeding in distant regions and handling extremely intricate boundaries, the framework effectively demonstrates how deep learning can empower users to achieve professional results with minimal effort.

Summary updated

BibTeX
@article{zhang2017real,
  author = {Richard Zhang and Jun-Yan Zhu and Phillip Isola and Xinyang Geng and Angela S. Lin and Tianhe Yu and Alexei A. Efros},
  title = {{Real-time user-guided image colorization with learned deep priors}},
  journal = {ACM Trans. Graphics},
  year = {2017},
  doi = {10.1145/3072959.3073703},
}
Figure