Abstract
Recent advances in deep learning-based object detection techniques have revolutionized their applicability in several fields. However, since these methods rely on unwieldy and large amounts of data, a common practice is to download models pre-trained on standard datasets and fine-tune them for specific application domains with a small set of domain relevant images. In this work, we show that using synthetic datasets that are not necessarily photo-realistic can be a better alternative to simply fine-tune pre-trained networks. Specifically, our results show an impressive 25% improvement in the mAP metric over a fine-tuning baseline when only about 200 labelled images are available to train. Finally, an ablation study of our results is presented to delineate the individual contribution of different components in the randomization pipeline.
Introduction
Deep learning models for object detection are notoriously data-hungry, typically requiring thousands of hand-labeled images to achieve high performance. In specialized fields like robotics, collecting and labeling such data is a significant bottleneck. The standard industry practice is fine-tuning: taking a model pre-trained on a massive general dataset (like COCO or ImageNet) and adapting it with a small set of domain-specific images. However, when target objects—such as specific industrial parts—differ significantly from the general objects in pre-training sets, fine-tuning often falls short. This paper explores whether synthetic data can bridge this "reality gap," specifically testing if non-photo-realistic data generated through Domain Randomization (DR) can be more effective than relying solely on small real-world datasets.
Methodology
The researchers employed a technique called Domain Randomization (DR). Instead of attempting to create a perfectly photo-realistic simulation, DR treats the real world as just one more variation of a highly randomized environment. By exposing the model to extreme variability in simulation, it learns to prioritize essential geometric features over specific lighting or textures.
Model and Simulation Pipeline
The study utilized the Single-Shot Detector (SSD) with a MobileNet backbone, chosen for its balance of speed and accuracy in real-time robotics. To generate data, the authors optimized an open-source Gazebo simulator plugin, achieving a 2x speedup. This allowed the generation of 9,000 Full-HD images in approximately 90 minutes by morphing object properties (scale, pose, texture) via API rather than reloading models for every frame.
Texture Randomization
To force the neural network to learn shapes rather than specific colors, four types of textures were applied to synthetic objects: flat colors, gradients, chess patterns, and Perlin noise. Perlin noise, a type of gradient noise often used in visual effects, proved vital for helping the model distinguish object boundaries from complex backgrounds.
Experimental Setup
The research utilized a combination of synthetic and real-world data:
- Synthetic Datasets: Two primary sets of 30,000 images were created. The "Fixed Viewpoint" (FV) set mimicked the lab setup, while the "Moving Viewpoint" (MV) set provided higher spatial variability.
- Real-World Dataset: A small, "low-data" benchmark consisting of only 250 images (175 for training, 26 for validation, 49 for testing) of boxes, cylinders, and spheres collected in a lab setting.
- Pre-training: Models were initially pre-trained on standard COCO and ImageNet datasets before further training.
Results and Discussion
The results demonstrate that complexity in simulation often outweighs photo-realism. The baseline model, fine-tuned only on real data, achieved a mean Average Precision (mAP) of 0.6598. By incorporating synthetic domain randomization (FV + Real), the score increased to 0.8319 mAP—a 26% relative improvement.
Key Insights
- The Power of Perlin Noise: Ablation studies revealed that removing Perlin noise textures caused the most significant drop in performance, suggesting that random noise patterns are essential for robust feature extraction.
- Viewpoint Alignment: Interestingly, the "Fixed Viewpoint" synthetic data outperformed the "Moving Viewpoint" data. This suggests that while randomization is beneficial, maintaining synthetic camera angles similar to the expected deployment environment provides a significant boost.
- Zero-Shot Transfer: Even without seeing a single real image during training, synthetic-only models achieved an mAP of roughly 0.58, proving that knowledge gained in a randomized "fake" world transfers effectively to reality.
Conclusion
This study highlights that Domain Randomization is a viable and efficient alternative to large-scale real-world data collection. By prioritizing the variety of randomization over raw data volume or visual realism, high-performing detectors can be trained for niche domains. Future work will focus on handling more complex, non-convex geometries and exploring multi-textured objects to further close the reality gap.
Summary updated