Cut, Paste and Learn: Surprisingly Easy Synthesis for Instance Detection

Debidatta Dwibedi, Ishan Misra, Martial Hebert

Abstract

A major impediment in rapidly deploying object detection models for instance detection is the lack of large annotated datasets. For example, finding a large labeled dataset containing instances in a particular kitchen is unlikely. Each new environment with new instances requires expensive data collection and annotation. In this paper, we propose a simple approach to generate large annotated instance datasets with minimal effort. Our key insight is that ensuring only patch-level realism provides enough training signal for current object detector models. We automatically 'cut' object instances and 'paste' them on random backgrounds. A naive way to do this results in pixel artifacts which result in poor performance for trained models. We show how to make detectors ignore these artifacts during training and generate data that gives competitive performance on real data. Our method outperforms existing synthesis approaches and when combined with real images improves relative performance by more than 21% on benchmark datasets. In a cross-domain setting, our synthetic data combined with just 10% real data outperforms models trained on all real data.

The Annotation Bottleneck in Instance Detection

The rapid deployment of object detection models is often hindered by the "annotation bottleneck." While generic object detection (e.g., identifying any chair) has seen significant progress, instance detection—identifying a specific brand of cereal or a particular chair in a specific room—requires massive amounts of environment-specific data. Manually labeling thousands of images for every new warehouse or kitchen is unscalable. While 3D rendering offers a potential solution, the "sim-to-real" gap often prevents these models from generalizing to physical environments. This work explores whether a simple 2D "cut and paste" approach can bridge this gap with minimal overhead.

Methods: The Cut-and-Paste Pipeline

The proposed pipeline is designed for simplicity and efficiency:

  1. Object Collection: Images of target objects are captured from multiple viewpoints (e.g., using the BigBIRD dataset).
  2. Automated Segmentation: A Fully Convolutional Network (FCN) extracts clean masks of the objects, isolating them from their original backgrounds.
  3. Data Augmentation (The "Paste"): Objects are overlaid onto random indoor background scenes. To ensure robustness, the system applies 2D and simulated 3D rotations, occlusions, and truncations. Distractor objects are also added to prevent the model from simply detecting any foreground change.
  4. Blending and Invariance: Naive pasting creates sharp edges that neural networks can easily overfit to. To counter this, the authors employ Gaussian blurring and Poisson blending. Crucially, they use an "Invariance Trick": training the model on the same scene rendered with multiple blending modes, forcing it to ignore local artifacts and focus on the object's intrinsic features.

Datasets and Evaluation

The method was evaluated on two primary benchmarks: the GMU Kitchen Dataset, which contains 9 kitchen scenes with 11 specific object instances, and the Active Vision Dataset, a challenging set with 33 objects across 9 scenes used to evaluate cross-domain generalization.

Detection examples in the GMU Kitchen dataset showing the model's ability to locate specific instances on a table.

Key Insights: Patch-Level Realism and Artifact Invariance

A central finding is that patch-level realism is sufficient. Global scene consistency (e.g., ensuring a cup is physically supported by a table) is less critical than the local appearance of the object patch. However, the model is highly sensitive to "seams." Without varied blending, the detector learns to recognize the "cut" rather than the object. Furthermore, synthetic data provides diverse viewpoint coverage that human-captured datasets often lack, as humans tend to photograph objects from predictable, natural angles.

Key Results

The "cut, paste, and learn" approach yielded impressive results:

  • Cross-Domain Superiority: On the Active Vision Dataset, a model trained on just 10% real data plus synthetic data achieved 43.2 mAP, outperforming a model trained on 100% real data (41.9 mAP).
  • Performance Boost: Integrating synthetic data with the GMU real dataset resulted in a relative performance boost of over 21% compared to previous synthesis baselines.
  • Ablation Impact: The "All Blend" training strategy improved performance by 8 AP points over no blending, confirming the importance of artifact invariance.
Instance detection results across various indoor environments, demonstrating the model's robustness to different backgrounds and lighting.

Limitations and Future Work

While global context was shown to be non-essential for basic training signal, the authors acknowledge that incorporating scene structure (like gravity and surface placement) could likely improve results. Additionally, while Poisson blending helps, it does not account for complex shadows or directional lighting. Future work may explore combining this 2D approach with more sophisticated 3D modeling or generative models like GANs to further refine the synthesis process.

Summary updated

BibTeX
@inproceedings{dwibedi2017cut,
  author = {Debidatta Dwibedi and Ishan Misra and Martial Hebert},
  title = {{Cut, Paste and Learn: Surprisingly Easy Synthesis for Instance Detection}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=Hyb1dbfu-S},
}
Figure