Geometry-aware data augmentation for monocular 3D object detection

Qing Lian, Botao Ye, Ruijia Xu, Weilong Yao, Tong Zhang

Introduction

Monocular 3D object detection is a critical yet challenging task for autonomous driving. While cameras offer a cost-effective alternative to LiDAR, the projection from 3D space to a 2D image plane results in the loss of explicit depth information. To estimate depth, neural networks rely heavily on "pictorial visual cues," such as an object's apparent size and its vertical position relative to the horizon line.

The Geometric Disconnect in 2D Augmentation

Standard data augmentation techniques used in 2D object detection, such as random scaling and cropping, often inadvertently destroy these vital geometric relationships. For instance, scaling an image increases an object's size without adjusting its ground-truth depth label. This creates a contradiction that hinders the network's ability to learn robust depth estimation, as the visual cues no longer match the labels. The authors demonstrate that existing detectors are highly vulnerable to these geometric shifts.

Proposed Geometry-Aware Augmentations

To address this, the paper introduces four augmentation strategies that maintain or explicitly account for the geometric relationship between image pixels and 3D coordinates:

  1. Random Scale as Focal Length Shift: Instead of simple resizing, image scaling is mathematically linked to changes in camera focal length. This ensures depth predictions remain consistent with the visual scale.
  2. Geometry-Preserving Cropping: Standard cropping shifts the horizon line. The authors use a "crop-then-pad" approach to ensure the vertical position of objects remains constant relative to the original camera frame.
  3. Simulated 3D Camera Movement: By leveraging a dense depth estimation network, the authors simulate moving the camera along the Z-axis (depth), synthesizing new views that are geometrically valid.
  4. Geometry-Consistent Copy-Paste: When pasting objects into new scenes, the system calculates the exact bounding box size and vertical position required to obey real-world perspective geometry.
Visualization of geometric manipulations including focal length changes, cropping, and 3D camera movement.

Impact on Depth Estimation

The effectiveness of these techniques is most evident in the "Size+pos" copy-paste method. Unlike baseline methods that only adjust position or size, the geometry-aware approach ensures that the object's visual representation matches its assigned depth.

As shown in the following figure, the "Size+pos (augmentation)" line follows the expected results much more closely than baseline manipulations. Without these corrections, the network's depth estimation becomes highly inaccurate as the true relative depth increases.

Comparison of copy-paste techniques and their impact on estimated relative depth vs. true depth.

Key Results and Generalization

The proposed augmentations yield significant improvements across major benchmarks:

  • KITTI Performance: The approach boosted the performance of both anchor-based (M3D-RPN) and anchor-free (CenterNet) detectors by approximately 6% AP on the validation set.
  • Cross-Domain Robustness: Training with geometry-aware augmentations makes models significantly better at generalizing to new camera intrinsics. When trained on KITTI and tested directly on nuScenes, the model achieved an 89% relative improvement in mAP over the baseline.
  • Semi-supervised Learning: The techniques act as a powerful regularizer, allowing the model to achieve high performance even with a small fraction of labeled data.

Conclusion

By ensuring that data augmentations respect the underlying physics of 3D projection, this work provides a powerful framework for improving monocular 3D detection. While the current approach assumes a flat ground plane, it sets a new state-of-the-art for the field and highlights the necessity of coordinate-aware training in 3D computer vision.

Summary updated

BibTeX
@inproceedings{lian2022geometry,
  author = {Qing Lian and Botao Ye and Ruijia Xu and Weilong Yao and Tong Zhang},
  title = {{Geometry-aware data augmentation for monocular 3D object detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=9fWl2QmmQ8},
}
Figure