UnRectDepthNet: Self-Supervised Monocular Depth Estimation using a Generic Framework for Handling Common Camera Distortion Models

Varun Ravi Kumar, Senthil Yogamani, Markus Bach, Christian Witt, Stefan Milz, Patrick MaderarXiv 2020

TL;DR

UnRectDepthNet is a self-supervised framework that estimates metric depth directly from raw, distorted camera images—eliminating the need for traditional image rectification. By integrating camera distortion models directly into the training loop, the system preserves the full field of view (FOV) and avoids the artifacts typically introduced by warping, achieving state-of-the-art performance on both standard and fisheye automotive datasets.

What Problem Does This Paper Address?

In classical computer vision, "rectification" is a standard preprocessing step. It involves removing lens distortion (like the "barrel" effect in wide-angle lenses) and aligning images to a simple pinhole camera model. While this simplifies the math for depth estimation, it comes with significant "hidden" costs:

  1. Reduced Field of View: To get a clean rectangular image after undistorting, you often have to crop out the edges. In fisheye cameras, this can result in losing over 30% of the image data.
  2. Resampling Artifacts: Warping images requires interpolation, which introduces blur and distortion, especially at the image periphery.
  3. Calibration Sensitivity: If your calibration is slightly off, the rectification process propagates those errors into the depth map.

The authors argue that deep neural networks are powerful enough to "absorb" the distortion model implicitly. By training on raw images, we can keep the full FOV and avoid unnecessary computation at inference time.

Illustration of FOV loss during rectification in KITTI and WoodScape datasets.

Methods

UnRectDepthNet builds on the self-supervised Structure-from-Motion (SfM) paradigm. Typically, these models use a "DepthNet" to predict depth and a "PoseNet" to predict the relative motion between frames. They then "warp" one frame onto another to calculate a reconstruction loss.

The core innovation here is the Generic Projection Framework. Instead of assuming a standard pinhole model during the warping step, the framework takes the camera's specific distortion model (e.g., Brown-Conrady for moderate FOV or Double Sphere for fisheye) as an argument.

Key technical components include:

  • Differentiable Unprojection/Projection: The network uses the specific camera model to map pixels to 3D space and back, allowing gradients to flow through the distortion parameters.
  • Scale-Awareness: Monocular depth is usually "scale-ambiguous" (the network doesn't know if it's looking at a small toy car nearby or a real car far away). UnRectDepthNet solves this by using the vehicle’s actual velocity (odometry) to scale the PoseNet’s translations, resulting in true metric depth.
  • Advanced Losses: It employs an edge-aware smoothness loss and a cross-sequence depth consistency loss to ensure the depth maps are sharp and temporally stable.
Overview of the UnRectDepthNet training framework.

Datasets

The authors evaluated their approach on two primary automotive benchmarks:

  • KITTI: The industry standard for autonomous driving. They tested on both the standard rectified version and the raw, "distorted" version.
  • WoodScape: A large-scale fisheye dataset featuring a 190° horizontal field of view, where distortion is extreme.

Key Insights and Ideas

  • Implicit Learning of Distortion: The researchers found that CNNs can learn to handle non-linear lens distortion without any increase in model complexity. The network essentially learns to "see" through the distortion.
  • Rectification is an Unnecessary Bias: While rectification was once a helpful "inductive bias" for simpler algorithms, it acts as a bottleneck for modern deep learning by throwing away valid peripheral information.
  • Preserving the Periphery: By working with unrectified images, the model maintains high-quality depth estimation at the very edges of the lens—critical for automotive safety applications like detecting cross-traffic or pedestrians at intersections.

Key Results

  • State-of-the-Art on KITTI: UnRectDepthNet outperformed existing self-supervised monocular methods on the rectified KITTI dataset.
  • Parity on Distorted Data: Remarkably, the model achieved nearly identical precision on unrectified KITTI images as it did on rectified ones. This proves that the "rectification step" can be moved entirely inside the network without performance loss.
  • Fisheye Excellence: On the WoodScape dataset, the model showed significant improvements over previous specialized fisheye models (like FisheyeDistanceNet), particularly in resolving fine-grained details and sharp boundaries.
Qualitative comparison showing precise depth maps on unrectified and fisheye images.

Limitations and Future Work

While the framework is generic, it currently requires the camera's calibration parameters to be known at training time. The authors suggest that future work could involve extending the framework to take various camera streams as input and output a single, truly generic inference model that can adapt to any camera model on the fly. Additionally, the reliance on ego-vehicle odometry for scale-awareness means the system is currently best suited for platforms (like cars or robots) that have onboard velocity sensors.

Summary updated

BibTeX
@misc{kumar2020unrectdepthnet,
  author = {Varun Ravi Kumar and Senthil Yogamani and Markus Bach and Christian Witt and Stefan Milz and Patrick Mader},
  title = {{UnRectDepthNet: Self-Supervised Monocular Depth Estimation using a Generic Framework for Handling Common Camera Distortion Models}},
  year = {2020},
  eprint = {2007.06676},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.06676},
}
Figure