Controllable Data Augmentation Through Deep Relighting

George Chogovadze, Rémi Pautrat, Marc PollefeysarXiv 2021

Abstract

Deep learning models for computer vision often struggle with extreme illumination changes. This paper introduces a novel relighting tool for data augmentation that disentangles scene geometry from illumination using an encoder-decoder architecture. By utilizing an interpretable "light probe" bottleneck, the system allows for controllable and realistic lighting variations. Experimental results on benchmarks such as HPatches and Aachen Day-Night demonstrate that this method significantly enhances the robustness of local feature descriptors, especially when training data is limited.

Introduction

Robustness to illumination changes is a critical requirement for computer vision applications in autonomous driving and robotics. Standard data augmentation techniques, such as adjusting brightness or contrast, often fail to capture the complex physical interactions of light in real-world environments. While style transfer offers more variety, it is frequently computationally expensive and prone to "content leakage" from reference images.

This work addresses these challenges by proposing a fast, controllable relighting network. The goal is to modify a scene's lighting without altering its underlying geometry, thereby providing high-quality synthetic data to train illumination-invariant local feature descriptors.

Methodology

The core of the proposed approach is a Relighting Network designed for disentangled representation learning.

Overview of the Relighting Network pipeline, showing the transformation from an input image to multiple relighted targets guided by interpretable light probes.

Architecture and Disentanglement

The network employs a U-Net-like encoder-decoder structure. A key innovation is the use of an interpretable light probe as the bottleneck. Instead of an abstract latent vector, the bottleneck represents the environment's illumination as a small image of a chrome ball. This allows for direct manipulation of lighting parameters, such as intensity and angle of incidence.

Detailed architecture of the Relighting Network, highlighting the Up-Projection (UPU) and Down-Projection (DPU) units, skip connections, and the probe-based bottleneck.

To preserve fine geometric details, the model utilizes skip connections between the encoder and decoder. The architecture incorporates "Up-Projection" and "Down-Projection" blocks to improve gradient flow. Training is guided by a multi-faceted loss function comprising L1 loss for pixel accuracy and a VGG-based perceptual loss to ensure visual realism. Furthermore, the authors leverage Blender to generate synthetic light probes, enabling the simulation of continuous lighting transitions beyond the scope of the original training data.

Experimental Setup

The model was trained on the Multi-Illumination Dataset (MID), which includes over 1,000 indoor scenes under 24 distinct lighting conditions. Evaluation was conducted across several rigorous benchmarks:

  • HPatches: For evaluating descriptors under viewpoint and illumination changes.
  • RDNIM: For testing homography estimation in day-to-night transitions.
  • Aachen Day-Night: A visual localization challenge requiring camera pose estimation at night using daytime references.
  • COCO & VIDIT: Used as base datasets for augmentation experiments.

Results and Discussion

The "Deep Relighting" augmentation strategy consistently outperformed standard methods (e.g., Albumentations) and state-of-the-art style transfer.

Key Findings

  • Performance Gains: On the Aachen Day-Night benchmark, the R2D2 descriptor trained with this method on the small VIDIT dataset showed a 32% improvement at the 0.25m accuracy threshold.
  • Efficiency: The method is approximately 6x faster than FastPhotoStyle, making it highly suitable for large-scale data augmentation.
  • Generalization: Improvements were observed across different architectures, including R2D2 and SuperPoint, indicating the broad applicability of the relighting strategy.
  • Small Dataset Utility: The most significant benefits were realized on smaller datasets, where the network's ability to "hallucinate" diverse lighting conditions effectively compensated for data scarcity.

Limitations

Despite its success, the model has limitations. It can struggle to extrapolate to lighting conditions entirely absent from its training set (e.g., extreme low-angle lighting). While effective for training descriptors, the output may not always meet the strict photorealism requirements of high-end cinematic rendering. Future work will focus on extending the model to complex outdoor environments involving dynamic sky and weather conditions.

Conclusion

Deep relighting provides a powerful, interpretable, and efficient means of data augmentation. By successfully disentangling geometry from illumination, the proposed network enables the creation of robust computer vision models capable of navigating the diverse lighting conditions of the real world.

Summary updated

BibTeX
@misc{chogovadze2021controllable,
  author = {George Chogovadze and Rémi Pautrat and Marc Pollefeys},
  title = {{Controllable Data Augmentation Through Deep Relighting}},
  year = {2021},
  eprint = {2110.13996},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.13996},
}
Figure