Domain Randomization for Scene-Specific Car Detection and Pose Estimation

Rawal Khirodkar, Donghyun Yoo, Kris M. Kitani

TL;DR

This paper introduces a method to train scene-specific car detectors and pose estimators without requiring a single manually labeled real-world image. By combining a simple 3D reconstruction of a specific scene with "Domain Randomization"—generating synthetic training data with massive variations in textures, lighting, and distractors—the authors create models that outperform those trained on limited real-world data.

What Problem Does This Paper Address?

Deploying computer vision systems for surveillance is a scaling nightmare. Every time a camera is installed in a new location, the "domain gap" strikes: a model trained on the KITTI dataset (captured from a car's bumper) performs poorly on a camera mounted 20 feet in the air.

The traditional fix is to manually annotate thousands of images for every new camera location, which is expensive and slow. While synthetic data (from video games or simulators) seems like a solution, models often "overfit" to the perfect, clean look of simulations and fail when they encounter the messy, noisy real world. This paper tackles how to bridge that gap using Domain Randomization (DR).

Methods

The authors propose a two-stage pipeline:

  1. Scene-Specific 3D Modeling: Instead of a generic simulation, they build a rough 3D proxy of the actual target scene. They take a single real image from the surveillance camera, use in-painting to remove existing cars, and create a basic 3D layout. They then "re-texture" this 3D box using homographic projections of the original background image.
  2. Synthetic Data Generation with DR: Using Unreal Engine 4, they populate this 3D scene with car models. Crucially, they don't try to make it look "photorealistic." Instead, they apply Domain Randomization:
  3. Content Variation: Randomly placing different car models and "distractors" (pedestrians, cones, spheres).
  4. Style Variation: Randomly swapping textures (using a bank of 50 different patterns), changing light positions, intensities, and colors, and adjusting image contrast/brightness.
  5. The Network: They use a Faster R-CNN architecture with a ResNet-101 backbone. To handle pose estimation, they add a specific "pose head" that treats the car's yaw angle as a classification problem (dividing 360 degrees into 36 bins) rather than a regression problem, which they found provided better flexibility for the network to learn.

Datasets

The method was evaluated on three major benchmarks to prove its versatility:

  • VIRAT: Challenging surveillance footage with significant background clutter.
  • UA-DETRAC: A large-scale multi-object detection benchmark.
  • EPFL-Car: A dataset specifically focused on car pose variations.

For training, they generated 10,000 synthetic images per scene.

Key Insights and Ideas

  • Variety Trumps Realism: The core philosophy of Domain Randomization is that if the network sees enough "weird" synthetic variations (like a car with a checkerboard texture in purple light), it eventually learns to ignore those features as noise. It is forced to focus on the essential, invariant features: the actual geometry and shape of the car.
  • Classification > Regression for Pose: The authors found that treating orientation (yaw) as a classification task worked better than predicting a continuous number. This "over-parameterization" allows the network more flexibility to learn complex visual cues associated with different angles.
  • The Power of Priors: By providing the model with the 3D geometry of the scene and camera parameters, the "search space" for the AI is significantly reduced, making the zero-instance learning problem much more tractable.

Key Results

  • Beating Real Data: The "SS+DR-finetune" model (trained on randomized synthetic data) consistently outperformed models trained on a limited amount of real-world annotated data (the "Real-0.5" baseline).
  • Competitive with Full Supervision: In many cases, the synthetic-only model achieved performance nearly identical to models trained on the entire real-world training set.
  • Outperforming Off-the-Shelf: Their model beat a standard COCO-pretrained detector by over 6% in average precision, with the gap widening in scenes that differed significantly from the COCO distribution.
  • Ablation Findings: The ablation study showed that randomizing textures and geometric variations (car shapes/sizes) were the most critical factors. Removing these caused the largest drops in performance.

Limitations and Future Work

While the results are impressive, the paper notes a few areas for growth:

  • Manual 3D Setup: While minimal, the process still requires a user to provide 2D-to-3D point correspondences to estimate camera parameters and define the basic 3D layout.
  • Dynamic Backgrounds: The current model uses a static background proxy. Future work could involve more complex environmental randomization, such as changing weather conditions (rain, snow) or more complex lighting interactions.
  • Beyond Cars: The framework is currently optimized for cars; extending this to more articulated objects (like humans) would require more complex 3D model libraries and randomization parameters.

Summary updated

BibTeX
@inproceedings{khirodkar2019domain,
  author = {Rawal Khirodkar and Donghyun Yoo and Kris M. Kitani},
  title = {{Domain Randomization for Scene-Specific Car Detection and Pose Estimation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2019},
  doi = {10.1109/wacv.2019.00210},
}
Figure