What My Motion tells me about Your Pose: A Self-Supervised Monocular 3D Vehicle Detector

Cédric Picron, Punarjay Chakravarty, Tom Roussel, Tinne Tuytelaars

Abstract

Estimating the 3D pose of vehicles from a single camera is a fundamental challenge for autonomous driving, typically requiring vast amounts of expensive 3D annotations. This paper introduces a self-supervised method that leverages the ego-vehicle's own motion to generate pseudo-labels for 3D vehicle detection. By using monocular SLAM to track movement relative to stationary objects, the system can fine-tune models trained on synthetic data to perform effectively in real-world environments. Our approach recovers up to 70% of the performance of fully supervised models without requiring any manual 3D labels in the target domain.

1. Introduction

Monocular 3D vehicle detection—estimating the 6-DoF pose and bounding box of cars from a single image—is a cost-effective alternative to LiDAR-based systems. However, deep learning models for this task are notoriously data-hungry and suffer from significant domain shift. A model trained in a simulator or a specific city often fails when deployed in a new environment.

The authors address this by utilizing the unlabeled video data already collected by vehicle fleets. By asking "Can we use the ego-vehicle's motion to supervise the training of a 3D detector?", they develop a framework that allows models to adapt to new domains automatically through self-supervision.

2. Methodology

The system decomposes the 3D detection problem into two distinct phases: orientation estimation and 3D bounding box optimization.

2.1 Self-Supervised Orientation Estimation

The global yaw of a target vehicle is treated as the sum of a ray angle (geometric position in the image) and a local angle (the vehicle's visual appearance).

As the ego-vehicle drives past a parked car, monocular SLAM tracks the ego-vehicle's trajectory. Since the parked car is stationary, any change in its relative global angle is caused by the ego-vehicle's motion. By subtracting the known ray angle from the SLAM-derived global angle, the system calculates the ground-truth change in the local angle.

To generate absolute pseudo-labels, the authors use an iterative process. An initial model (pre-trained on virtual data) predicts a sequence of angles for a tracked car. This sequence is compared to the SLAM-derived motion, outliers are pruned, and a constant bias is calculated to create absolute target angles. These pseudo-labels are then used to fine-tune the model over several cycles.

2.2 3D Bounding Box Optimization

Once the orientation is established, the system optimizes the depth ($Z$) of the 3D box. Using the 2D bounding box detection and average vehicle dimensions, a Nelder-Mead optimizer finds the depth that maximizes the Intersection over Union (IoU) between the 3D box's 2D projection and the original image detection.

3. Key Insights

  • The Failure of Difference-Based Learning: Initial attempts to use a Siamese network based on the difference between two angle predictions failed. The network could not determine which of the two predictions was incorrect, leading to improper gradient flow. The shift to a robust bias-estimation approach for absolute pseudo-labels was essential for success.
  • Bypassing Scale Ambiguity: Monocular SLAM typically suffers from scale ambiguity (not knowing absolute distances). However, because this method relies on angular changes rather than absolute translations, it remains highly effective despite the lack of metric scale.
  • Robustness to Dynamic Objects: While the math assumes stationary objects, the system is naturally robust to moving cars. Most moving vehicles travel in straight lines, maintaining a constant global angle. Turning cars that violate the stationary assumption are effectively removed by the robust outlier pruning algorithm.

4. Results and Evaluation

The method was evaluated by adapting models from virtual data (vKITTI) to real-world datasets (KITTI and nuScenes).

  • Domain Adaptation: When adapting from vKITTI to nuScenes, the self-supervised fine-tuning reduced the median orientation error from $41.2^\circ$ to $13.9^\circ$. This recovers approximately 70% of the performance of a fully supervised model ($2.9^\circ$ error).
  • Spatial Accuracy: The pipeline achieved median depth errors of 2.89m on KITTI and 3.73m on nuScenes. Given that detections occur at ranges up to 100m, these errors are within a single car length, providing sufficient accuracy for maintaining safe following distances.

5. Limitations and Future Work

The current optimization uses fixed, average vehicle dimensions. Future work may involve using segmentation-based silhouette metrics to allow for individual vehicle size optimization, as the current IoU-based approach can cause the 3D box to collapse. Additionally, while the system demonstrates high accuracy, the current processing speed of 1.15 FPS requires further optimization for real-time deployment in autonomous vehicles.

Summary updated

BibTeX
@inproceedings{picron2021what,
  author = {Cédric Picron and Punarjay Chakravarty and Tom Roussel and Tinne Tuytelaars},
  title = {{What My Motion tells me about Your Pose: A Self-Supervised Monocular 3D Vehicle Detector}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  doi = {10.1109/icra48506.2021.9562086},
}
Figure