Abstract
Colorizing grayscale images is a classic ill-posed problem, as a single scene can be realistically rendered with various color palettes. While recent deep learning models have moved toward diverse colorization, they often suffer from structural inconsistencies—such as "speckled" artifacts—and a lack of user controllability. This paper introduces a novel framework that combines Variational Auto-Encoders (VAEs) with Gaussian Conditional Random Fields (G-CRFs). This integration allows for the generation of multiple plausible colorizations that remain globally consistent and can be easily guided by user-provided color strokes.
Addressing Structural Inconsistency and Control
Automated colorization systems frequently face two major hurdles. First, predicting colors for pixels independently can lead to structural inconsistency, where a single object (like a face or a car) displays unnatural, patchy color variations. Second, most models lack controllability; users cannot easily specify a particular color for an object without compromising the overall harmony of the generated image.
Methodology: Blending Generative Models with Graphical Priors
The authors propose a multi-stage approach that explicitly separates color diversity from structural coherence.
Diversity via VAE and MDN
The framework utilizes a Variational Auto-Encoder (VAE) to compress color information into a low-dimensional latent space. To handle the inherent ambiguity of the grayscale-to-color mapping, a Mixture Density Network (MDN) is employed. At inference time, the MDN predicts multiple "clusters" of potential colors, enabling the system to sample diverse versions of the same scene.
Consistency via Gaussian Conditional Random Fields (G-CRF)
The core innovation is the addition of a G-CRF layer at the output. This layer acts as a structural prior by calculating a similarity matrix based on grayscale intensities. If two pixels have similar brightness and belong to the same structure, the G-CRF forces them to share similar colors, effectively eliminating the "speckled" look common in other generative models.
Interactive User Control
Because the G-CRF is formulated as a quadratic energy function, incorporating user constraints (such as a red brush stroke on a hat) is reduced to solving a system of linear equations. This allows user edits to propagate naturally across the image while maintaining global coherence.
Experimental Evaluation
The model was tested on the LFW (faces), LSUN-Church (architecture), and ImageNet (general objects) datasets.
Key Results
- Qualitative Performance: The proposed method produces significantly fewer artifacts than baselines like c-GAN, BicycleGAN, and VAE-MDN. It successfully avoids the mode collapse seen in standard GANs while maintaining the structural integrity of the original grayscale image.
- Human Preference: In "realism" tests, human participants preferred the authors' results over other state-of-the-art methods, winning approximately 60-70% of the time against VAE-MDN and PIC.
- Quantitative Metrics: The model achieved a lower "Error-of-best" (Eob) per pixel and higher Structural Similarity (SSIM) across diverse samples, proving it maintains better image integrity.
Conclusion and Future Directions
By disentangling color selection from structural distribution, this framework achieves a balance between diversity and consistency. While scaling the G-CRF linear system to very high resolutions remains a computational challenge, the current approach offers a robust path forward for both automated and interactive colorization tasks. Future work may involve integrating semantic segmentation to further improve the model's contextual understanding of scenes.
Summary updated