This NeurIPS 2019 paper presents a significant step forward in how robots and autonomous systems perceive their environment using a single camera. The authors propose a self-supervised framework that learns to estimate depth and camera motion from raw monocular video by enforcing geometric consistency across frames. This approach achieves globally scale-consistent camera trajectories and handles moving objects effectively without the need for expensive ground-truth data or additional complex sub-networks.
The Challenge of Monocular Vision
Estimating depth and "ego-motion" (how the camera moves) is fundamental for navigation. While deep learning has made strides in doing this without labels (self-supervised), two major hurdles have historically limited performance:
- Scale Inconsistency: Monocular cameras suffer from "scale ambiguity"—they cannot inherently tell the difference between a small object close up and a large object far away. Previous unsupervised models would predict a different scale for every pair of frames, making it impossible to map a long, continuous camera trajectory.
- The Static Scene Assumption: Most models assume the world is entirely still. When a car drives past the camera, it violates the geometric math used to train the network, leading to "hallucinated" depth artifacts.
Existing solutions often relied on stereo cameras (which have a fixed, known distance between lenses) or additional heavy networks to predict optical flow or object segmentation, which are computationally expensive.
Proposed Methods
The authors introduce two elegant, low-cost solutions to tackle these challenges without relying on multi-task learning:
- Geometry Consistency Loss ($L_{GC}$): Instead of just checking if the colors match between warped frames (photometric loss), the framework checks if the 3D geometry matches. It takes the predicted depth of Frame A, projects it into 3D space, moves it based on the predicted camera motion, and then compares it to the predicted depth of Frame B. By minimizing this discrepancy, the network is forced to pick a single, consistent scale that propagates through the entire video sequence.
- Self-Discovered Mask ($M$): The authors realized that the error map from their geometry check is actually a highly effective "outlier detector." If the depth doesn't match after projection, it’s likely because that pixel belongs to a moving object or is occluded. They use this error map to automatically weight down those problematic pixels during training, effectively "masking" them out without needing a separate segmentation network.
- Single-Scale Supervision: Contrary to the common practice of supervising the model at multiple image resolutions, the authors found that supervising only at the highest resolution prevents the "over-smoothing" of depth maps that often happens in low-resolution views.
Key Insights and Results
The model was trained and evaluated on the KITTI Raw and Odometry datasets, utilizing CityScapes for pre-training. The results demonstrate significant advancements in unsupervised monocular perception:
- Scale as a Global Constraint: By enforcing consistency between consecutive frames, the scale "locks in" across the whole sequence. This is the first work to show that monocular unsupervised models can produce globally consistent trajectories.
- State-of-the-Art Depth: The model outperformed all previous monocular unsupervised methods on the KITTI depth benchmark.
- Competitive Odometry: Despite only using a single camera, the system's visual odometry (VO) performance was competitive with models trained on stereo video, which have a built-in physical scale reference.
- Simplicity Wins: By removing the need for multi-task learning (flow, segmentation, etc.), the training process is significantly faster—taking roughly 32 hours compared to 7 days for some competing architectures.
Qualitatively, the self-discovered mask effectively cleans up depth "holes" and artifacts typically caused by moving cars in the training data, allowing the network to focus on the static geometry of the scene.
Limitations and Future Work
While the scale is consistent, the system still suffers from "drift" (accumulated error) over very long sequences, which is a common problem in all dead-reckoning systems. The authors suggest that incorporating "loop closure" (recognizing when the camera has returned to a previously seen location) into the learning framework could help eliminate this drift and move closer to a full Unsupervised SLAM (Simultaneous Localization and Mapping) system.
Summary updated