NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

When the Sun Goes Down: Repairing Photometric Losses for All-Day Depth Estimation

Madhu Vankadari, Stuart Golodetz, Sourav Garg, Sangyun Shin, Andrew Markham, Niki Trigoni · DOI

Introduction

Self-supervised monocular depth estimation has emerged as a powerful technique for perceiving 3D scenes from 2D video without the need for expensive LiDAR ground truth. These models typically rely on the photometric consistency assumption: the idea that if a camera's motion and the scene's depth are known, one video frame can be "warped" to match the next. However, this assumption is fundamentally built for a "perfect" world—one with static scenes, consistent lighting, and minimal sensor noise.

In real-world nighttime driving, this assumption collapses. Moving headlights create shifting blooms of light, streetlamps cause non-uniform intensity shifts, and low-light sensors introduce significant noise. Consequently, standard models often "hallucinate" incorrect depth structures to minimize the loss caused by these lighting artifacts. This paper introduces a robust framework to "repair" the photometric loss, enabling state-of-the-art depth accuracy across both day and night sequences using a single, unified architecture.

Methodology: Repairing the Photometric Loss

The authors propose a three-pronged approach to make self-supervised depth estimation resilient to the challenges of all-day environments.

1. Neural Intensity Transformation (NIT)

To address the violation of brightness constancy, the model incorporates a Neural Intensity Transformation (NIT) module. Instead of assuming pixel intensities match between frames, the network predicts two per-pixel maps: Contrast ($C_t$) and Brightness ($B_t$). An affine transformation ($Scale \times Image + Shift$) is applied to the reprojected frame before the loss is calculated. This allows the network to "explain away" lighting changes caused by external sources like headlights or streetlamps, focusing the training signal on the underlying geometry.

2. Motion Compensation via Residual Flow

Standard reprojection assumes a static world, but nighttime scenes are often filled with moving vehicles and pedestrians. To handle these dynamic objects and potential motion blur, the model predicts a per-pixel residual flow map ($R_t$). This provides a 2D offset to correct the geometric reprojection. To ensure the model doesn't use this flow to "cheat" (i.e., ignoring depth entirely), a sparsity loss is applied, encouraging the model to rely on geometric depth for the majority of the scene.

3. Unsupervised Image Denoising

Low-light imagery is inherently noisy, which can corrupt the photometric loss. The authors incorporate Neighbour2Neighbour, an unsupervised denoising module, into the training pipeline. Crucially, this denoising is only applied to the images used to calculate the loss. The depth-estimation network itself still processes the original noisy images. This strategy provides a cleaner training signal without adding the computational overhead of denoising during real-time inference.

Experimental Setup and Results

The study utilizes the Oxford RobotCar dataset, which features over 1000 km of driving data across various weather and lighting conditions. To ensure a fair evaluation of generalization, the authors introduced new, geographically disjoint splits for both day and night, preventing the model from simply "memorizing" specific locations.

Quantitative Performance

The proposed method demonstrates significant improvements over existing baselines:

  • Nighttime Superiority: On nighttime sequences, the model achieved an RMSE of 6.302, drastically outperforming the baseline Monodepth2 (11.420) and specialized nighttime models like DeFeat-Net (8.606) and ADDS-Depth-Night (7.985).
  • Daytime Robustness: Even in clear daytime conditions, the model improved upon the baseline (RMSE 6.158 vs 7.641), suggesting that the proposed "repairs" are beneficial even when lighting is relatively stable.

Key Insights

  • The Parallax Paradox: Typically, increasing the "stride" (temporal distance) between frames makes depth estimation harder because lighting changes more drastically over time. However, with the NIT module, the authors found that a wider baseline actually improved performance. By compensating for lighting shifts, the model could leverage the stronger geometric signal (more parallax) provided by wider baselines.
  • Unified Architecture: Unlike previous methods that required separate encoders for day and night or complex domain adaptation, this method uses a single, standard architecture that remains effective across all conditions.

Conclusion and Future Work

By addressing the core failures of photometric consistency—lighting variation, motion, and noise—this research provides a robust path forward for all-day autonomous perception. While the model significantly improves depth sharpness and accuracy, limitations remain. Like most monocular methods, it faces scale ambiguity and struggles with very distant objects where parallax is minimal. Furthermore, in conditions of extreme darkness where the signal-to-noise ratio is too low, or on highly specular surfaces like glass, structural recovery remains a challenge. Future work may look toward integrating these photometric repairs with multi-modal sensors to further enhance reliability in the most extreme environments.

Summary updated

BibTeX
@inproceedings{vankadari2022when,
  author = {Madhu Vankadari and Stuart Golodetz and Sourav Garg and Sangyun Shin and Andrew Markham and Niki Trigoni},
  title = {{When the Sun Goes Down: Repairing Photometric Losses for All-Day Depth Estimation}},
  booktitle = {Conference on Robot Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=7RyzGWLk79H},
}
Figure