NeRFmentation: Improving Monocular Depth Estimation with NeRF-Based Data Augmentation

Casimir Feldmann, Niall Siegenheim, Nikolas Hars, Lovro Rabuzin, Mert Ertugrul, Luca Wolfart, Marc Pollefeys, Zuria Bauer, Martin R. Oswald · DOI

TL;DR

This paper introduces "NeRFmentation," a novel data augmentation technique that leverages Neural Radiance Fields (NeRFs) to generate synthetic, diverse views of existing driving datasets. This approach significantly improves the robustness and generalization capabilities of monocular depth estimation (MDE) models, particularly in challenging out-of-distribution scenarios.

What Problem Does This Paper Address?

Monocular Depth Estimation (MDE) models, crucial for tasks like autonomous driving, heavily rely on large and diverse datasets. However, real-world driving datasets often suffer from limited spatial variability due to linear camera trajectories. This lack of diverse viewpoints hinders the generalization of MDE models to unseen environments and scenarios. While traditional data augmentation techniques exist, they often fail to address this fundamental limitation of pose diversity. The authors aim to overcome this by creating synthetic data with novel viewing directions to enrich existing datasets.

Methods

The core of the paper is the NeRFmentation pipeline. It involves:

  1. NeRF Training: For each scene in a given dataset (e.g., KITTI), Neural Radiance Fields (NeRFs) are trained to represent the 3D scene. The authors use a modified NeRF architecture (depth-nerfacto-huge) that benefits from depth supervision and has a larger capacity.
  2. NeRF Filtering: A crucial step involves filtering out poorly reconstructed NeRFs. This is done by rendering validation views and evaluating them using a combined metric (TRGBD) that considers both RGB and depth reconstruction quality.
  3. Synthetic View Generation: The trained and filtered NeRFs are then used to render novel RGB-D images from perturbed camera poses. The paper explores several strategies for generating these new views, including reconstruction (using original poses), interpolation between poses, and translation (horizontal/vertical) or rotation of original poses.
  4. Dataset Augmentation: The generated synthetic views are combined with the original dataset to create an augmented training set for MDE models.

The key novelty lies in using NeRFs to augment the pose space of the training data, rather than just applying image-space transformations.

Datasets

  • KITTI [12]: Used as the primary dataset for training and evaluating the NeRFmentation pipeline. The Eigen split is specifically mentioned.
  • Waymo Open Dataset [32]: Used as an out-of-distribution dataset to evaluate the generalization capabilities of MDE models trained on augmented KITTI data.
  • Replica Dataset [31]: Used for evaluating NeRFmentation on indoor scenes.
  • NYU-Depth V2 Dataset [28]: Also used for evaluating NeRFmentation on indoor scenes.
  • Synthetic Test Set: The authors create their own synthetic test set based on KITTI data with dense ground truth, specifically designed to better evaluate NeRFmentation's benefits.

Key Insights and Ideas

  • Pose Diversity is Key: The primary limitation of current MDE datasets for autonomous driving is the lack of diverse viewing angles. NeRFmentation directly addresses this by generating novel viewpoints.
  • NeRFs as Powerful Augmenters: NeRFs are shown to be capable of generating high-quality, geometrically consistent RGB-D data from unseen viewpoints, making them ideal for data augmentation.
  • Filtering is Crucial: Not all NeRFs are created equal. Filtering out poorly reconstructed NeRFs is essential to avoid introducing noise and negatively impacting downstream MDE model performance.
  • Out-of-Distribution Performance Boost: NeRFmentation significantly improves the performance of MDE models on unseen datasets (like Waymo), demonstrating its effectiveness in enhancing generalization.
  • Classic Augmentations Can Hurt: Surprisingly, traditional data augmentation techniques (rotations, flips, crops) can sometimes degrade performance when used in conjunction with NeRFmentation, suggesting NeRFmentation can act as a replacement.
  • Vertical Translation Strategy is Promising: Among the tested augmentation strategies, vertical translation of camera poses often yields the best results, especially for out-of-distribution tasks.

Key Results

  • Significant performance gains: NeRFmentation consistently improves MDE model performance across various metrics (e.g., REL, SQ. REL, RMS) on both in-distribution (KITTI) and out-of-distribution (Waymo) test sets.
  • Outperforming baselines: NeRFmented models significantly outperform baseline models and other augmentation techniques like FDA and style transfer, especially on the Waymo dataset. For instance, on Waymo, NeRFmentation with vertical translation strategy achieved a REL of 0.220, compared to 0.297 for FDA and 0.287 for Style Transfer.
  • Qualitative improvements: NeRFmented models produce sharper details, better object outlines, and more complete depth maps, especially in challenging areas.
  • Model-agnostic: The benefits of NeRFmentation are observed across different MDE architectures (AdaBins, DepthFormer, BinsFormer).
  • Indoor scene limitations: NeRFmentation shows limited or even negative impact on indoor datasets like NYU-Depth V2 and Replica, likely due to their inherent differences in data scarcity and pose diversity compared to outdoor driving datasets.

Limitations and Future Work

  • Indoor Scene Performance: NeRFmentation does not perform well on indoor datasets, possibly because these datasets already have sufficient pose diversity or the nature of indoor scenes (e.g., close-up views, different sensor types like Kinect) poses different challenges.
  • NeRF Limitations: NeRFs can struggle with unobserved regions during training, leading to noisy renders. This can penalize MDE models.
  • Dynamic Scenes: The current NeRF approach assumes static scenes, which is a limitation for dynamic environments with moving objects.
  • Future Work:
    • Masking: Developing methods to mask out noisy or unobserved regions in NeRF renders to prevent MDE models from learning incorrect information.
  • Dynamic NeRFs: Exploring dynamic NeRF methods to handle moving objects and improve data synthesis fidelity.
  • Fine-tuning: Investigating how finetuning existing models like DepthAnything could benefit from NeRFmentation.

Summary updated

BibTeX
@inproceedings{feldmann2024nerfmentation,
  author = {Casimir Feldmann and Niall Siegenheim and Nikolas Hars and Lovro Rabuzin and Mert Ertugrul and Luca Wolfart and Marc Pollefeys and Zuria Bauer and Martin R. Oswald},
  title = {{NeRFmentation: Improving Monocular Depth Estimation with NeRF-Based Data Augmentation}},
  booktitle = {Workshops @ ECCV},
  year = {2024},
  doi = {10.1007/978-3-031-91907-7\_6},
}
Figure