Collaborative Image and Object Level Features for Image Colourisation

Rita Pucci, Christian Micheloni, Niki MartinelWorkshops @ CVPR 2021

Abstract

Automatic image colorization is a challenging ill-posed problem that requires a balance between global scene context and local object semantics. We introduce UCapsNet, a fully unsupervised neural network architecture that achieves this balance by combining Convolutional Neural Networks (CNNs) with Capsule Networks. While CNNs excel at capturing global textures, Capsule Layers represent objects as vectors, preserving spatial relationships and object boundaries. Our approach utilizes skip connections and a dual loss function (Quantization and Color Error) to produce vivid, realistic colorizations. UCapsNet outperforms existing unsupervised methods on ImageNet, COCOStuff, and Places205 benchmarks, achieving a PSNR of 30.42 and high human preference scores.

Introduction

The task of transforming grayscale images into color is inherently ambiguous; a single object, such as a car or a garment, can plausibly take on numerous hues. Existing automated solutions often rely on CNNs, which are proficient at identifying broad environmental contexts (e.g., "sky" or "grass") but frequently struggle with "entity-level" semantics. This often results in "color bleeding," where colors spill across object boundaries. UCapsNet addresses this by forcing a collaboration between image-level context and object-level precision.

Methodology: The UCapsNet Architecture

UCapsNet is designed as a single-network architecture for collaborative feature learning, avoiding the need for human-guided "scribbles" or pre-labeled datasets.

Collaborative Feature Extraction

  • Image-Level Features: The network employs standard convolutional blocks (Double Block Down/Up) to extract global context, identifying the overall scene type.
  • Entity-Level Features: The integration of Capsule Layers is the primary innovation. Unlike standard CNNs that lose spatial information through pooling, capsules represent objects as vectors. This allows the model to better define the properties and boundaries of specific entities.
  • Skip Connections: These act as bridges between early high-resolution layers and deep semantic features, ensuring that fine-grained details are preserved during the final color reconstruction.

Dual Loss Function

To handle the multi-modal nature of colorization, the model is trained using two primary losses: Quantization Loss ($L_q$), which manages the probability distribution of potential colors, and Color Error Loss ($L_c$), which ensures the final predicted colors minimize the distance from the original ground truth.

Datasets and Generalization

The model's robustness was evaluated across three diverse benchmarks: ImageNet (primary training), COCOStuff (complex scenes), and Places205 (landscape transferability).

UCapsNet demonstrates strong performance across both architectural (Venice) and natural (mountain) landscapes.

Results and Performance Analysis

UCapsNet demonstrates significant improvements over previous state-of-the-art unsupervised methods in both quantitative and qualitative metrics.

Quantitative Performance

On the ImageNet ctest10k benchmark, UCapsNet achieved a Peak Signal-to-Noise Ratio (PSNR) of 30.42. This represents a substantial improvement over previous benchmarks, which typically ranged between 22 and 25.

Qualitative Analysis and Human Preference

A large-scale user study involving 3,600 votes confirmed the model's visual superiority. Humans preferred UCapsNet’s results over popular competitors like DeOldify (64% preference) and Su et al. (54% preference).

A colorized version of the iconic "Migrant Mother" photo, showcasing the model's ability to produce plausible skin tones and textures.

One of the most significant qualitative benefits of the capsule-based approach is the reduction of "color bleeding." By recognizing object shapes as distinct entities, the model keeps colors strictly within boundaries, resulting in more saturated and vivid outputs compared to the desaturated results of older methods.

Conclusion

UCapsNet proves that unsupervised colorization can serve as a powerful "pretext task" for teaching models to understand object boundaries and scene semantics. While the computational cost of training remains high (approximately 10 hours per epoch on an NVIDIA Titan RTX), the model sets a new standard for fully automatic colorization. Future research will focus on optimizing the "routing by agreement" algorithm to improve efficiency while maintaining high-fidelity boundary precision.

Summary updated

BibTeX
@inproceedings{pucci2021collaborative,
  author = {Rita Pucci and Christian Micheloni and Niki Martinel},
  title = {{Collaborative Image and Object Level Features for Image Colourisation}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00245},
}
Figure