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

Abstract

Self-supervised deep learning methods for joint depth and ego-motion estimation can yield accurate trajectories without needing ground-truth training data. However, as they typically use photometric losses, their performance can degrade significantly when the assumptions these losses make—temporal illumination consistency, a static scene, and the absence of noise—are violated. This limits their use for nighttime sequences, which contain point light sources and low signal-to-noise ratio (SNR). In this paper, we introduce a per-pixel neural intensity transformation, a per-pixel residual flow map, and training-time image denoising. These changes allow us to train a single model for both day and nighttime images without needing separate encoders or extra feature networks.

Introduction

Estimating 3D depth from a single camera is highly desirable for autonomous driving due to the low cost of standard sensors. Self-supervised learning relies on a "photometric loss": the network predicts depth and camera motion, warps the next frame into the current frame's perspective, and penalizes visual differences. However, nighttime driving features moving point-light sources, heavy motion blur, and severe image noise, which shatter the assumptions of standard photometric loss. Previous solutions often required complex domain adaptation or separate encoders for day and night.

Methodology

The proposed architecture builds upon the Monodepth2 baseline, introducing three targeted modifications to "repair" the photometric loss for nighttime conditions.

The proposed system architecture, highlighting the DepthNet, MotionNet, and specialized decoders for Residual Flow and Light Changes used to compute the repaired photometric loss.

Lighting Change Compensation

Instead of assuming constant lighting, the network uses a Lighting Change Decoder to predict per-pixel contrast (scale) and brightness (shift) maps. These maps transform the reconstructed image to match the actual lighting changes caused by moving headlights or passing streetlamps before the photometric loss is calculated. This per-pixel approach is necessary because lighting changes at night are highly non-uniform.

Motion Compensation

To handle dynamic objects and motion blur, a Residual Flow Decoder predicts a per-pixel 2D flow map ($R_t$) that corrects the pixel correspondences established by the network's depth and ego-motion estimates. It is trained using a sparsity loss, encouraging the network to explain most of the scene via standard depth/motion, utilizing the residual flow only for moving objects.

Image Denoising

Nighttime images suffer from low Signal-to-Noise Ratio (SNR). The authors apply the Neighbour2Neighbour unsupervised denoiser to the training images. Crucially, these denoised images are only used to calculate the training loss; the network still takes noisy images as input, forcing it to learn noise-robust features without adding computational overhead during inference.

Experimental Results

The model was evaluated on the Oxford RobotCar dataset across Day, Night, and Mixed splits. The proposed method significantly outperforms existing state-of-the-art unsupervised monocular methods.

Quantitative evaluation on the Oxford RobotCar dataset. The proposed method (Ours) achieves superior performance across all metrics, particularly in nighttime sequences.

On the night-only test split, the model achieved an RMSE of 6.288, a substantial improvement over the baseline Monodepth2 (11.420) and the nighttime-specific RNW (8.994). When trained on a mix of day and night images, the model achieved an RMSE of 6.036, beating the previous best domain-separation method, ADDS-Depth-Night (6.743). Qualitatively, the model produces sharper depth maps and successfully eliminates the "holes" in depth estimation typically caused by headlight glare.

Discussion and Limitations

By successfully compensating for lighting changes, the model can exploit wider baselines—frames further apart in time—which significantly boosts performance but usually breaks photometric consistency at night. However, limitations remain: the model cannot recover structural detail from entirely dark regions, and it struggles with objects moving at the exact same speed and direction as the ego-vehicle. Future work may incorporate inverse camera-response functions to better approximate non-linear lighting changes.

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