Conditional GANs for Multi-Illuminant Color Constancy: Revolution or yet Another Approach?

Oleksii SidorovWorkshops @ CVPR 2019

Abstract

Color constancy (CC) is a fundamental computer vision task that aims to recover the true colors of a scene by neutralizing the effects of illumination. Traditional methods often struggle with multi-illuminant environments where lighting varies spatially. This paper introduces AngularGAN, a generative adversarial network designed to treat color constancy and shadow removal as a direct image-to-image translation task. By incorporating a novel angular loss function and leveraging a massive new synthetic dataset derived from Grand Theft Auto V, AngularGAN achieves state-of-the-art performance in complex lighting scenarios without requiring intermediate illumination map estimation.

Introduction

Color constancy is the ability of a system to perceive the "true" color of an object regardless of the light source—for instance, ensuring a white piece of paper appears white under both the warm glow of a sunset and the cool blue of a shaded area. While the human visual system performs this task effortlessly, computational models face significant hurdles when scenes contain non-uniform illumination, such as multiple light sources or complex shadows that alter light color on a pixel-by-pixel basis.

Historically, algorithms have approached this problem in two stages: first, estimating the color of the light (the illumination map), and second, dividing the input image by that map to neutralize the tint. This paper argues that the illumination map is an unnecessary intermediate step. Instead, the authors propose treating color constancy as a generative problem, training a network to directly "see" and produce the corrected, canonical image.

Methods: The AngularGAN Architecture

The core of this research is AngularGAN, built upon the Pix2pix conditional GAN architecture. Unlike traditional regressors, AngularGAN maps an image with unknown illumination directly to a neutral, canonical version.

The AngularGAN architecture, highlighting the generator-discriminator setup and the integration of the novel angular loss term.

Key Innovations

  • End-to-End Learning: The model bypasses physical assumptions (like the "Grey World" hypothesis) and learns the physics of light implicitly from data.
  • Angular Loss: Chromatic accuracy in color constancy is typically measured by "angular error" (the 3D angle between predicted and ground-truth color vectors). AngularGAN incorporates a specific angular loss term ($L_{ang}$) alongside standard L1 and Discriminator losses. This forces the network to prioritize the directional accuracy of color vectors, which is more critical for CC than simple pixel-wise intensity.
  • Architectural Variants: The authors explored two versions: the standard AngularGAN, which estimates illumination from the predicted image to calculate loss, and AngularGAN-v2, which utilizes ground-truth illumination maps during training to further refine accuracy.

Datasets and the GTAV Innovation

Training a GAN for these tasks requires vast amounts of paired data (images of the same scene under different lighting). To address the scarcity of real-world shadow-removal data, the authors introduced the GTAV Shadow Dataset. By using the rendering engine of Grand Theft Auto V, they generated 5,723 image pairs featuring diverse environments and wide fields of view.

An example of shadow removal from the GTAV dataset, showing the original shadowed scene (left) and the corrected output (right).

In addition to this new resource, the study utilized standard benchmarks:

  1. SFU Grayball & ColorChecker: Used for testing performance on uniform (single-source) illumination.
  2. Synthetic Multi-Illuminant Dataset: Created by applying random Gaussian "tint maps" to neutral images to simulate complex real-world lighting.

Key Results and Insights

AngularGAN demonstrates a unified capability to handle both color constancy and shadow removal, treating shadows essentially as a "two-illuminant" problem (direct sun vs. ambient sky light).

  • Multi-Illuminant Performance: On multi-illuminant tasks, AngularGAN significantly outperformed existing methods like LSAC and MIRF, achieving a mean angular error of 3.98°, a substantial improvement over the next best method's 6.15°.
  • Uniform CC: Even on standard single-light datasets, the GAN remained competitive with specialized CNN regressors, recording an error of 4.67° on the SFU Grayball set.
  • Robustness: By learning from data rather than relying on manual tuning or rigid physical models, the system proved more robust to unusual or random light distributions.

Limitations and Future Work

Despite its success, the generative approach introduces a "generative trade-off." While the colors are highly accurate, GANs can occasionally introduce subtle artifacts, such as periodic noise or checkerboard patterns, which are absent in traditional mathematical transforms. Furthermore, the model is "data-hungry"; while the GTAV dataset provides a massive boost, a gap still exists between synthetic game graphics and the complex physics of the real world.

Finally, the authors noted that some generated images exhibited slight shifts in overall brightness. While these shifts do not affect the color hue (the primary goal of CC), they can negatively impact pixel-based metrics like PSNR. Future iterations of AngularGAN may focus on refining image texture and luminance stability to eliminate these artifacts.

Conclusion

AngularGAN represents a significant shift in the field of color constancy. By moving away from explicit illumination estimation and embracing an end-to-end generative framework, the authors have provided a formidable new tool for handling the complexities of real-world, multi-illuminant scenes.

Summary updated

BibTeX
@inproceedings{sidorov2019conditional,
  author = {Oleksii Sidorov},
  title = {{Conditional GANs for Multi-Illuminant Color Constancy: Revolution or yet Another Approach?}},
  booktitle = {Workshops @ CVPR},
  year = {2019},
  doi = {10.1109/cvprw.2019.00225},
}
Figure