Benchmarking Domain Randomisation for Visual Sim-to-Real Transfer

Raghad Alghonaim, Edward JohnsICRA 2020 · DOI

Abstract

Training robotic vision systems in simulation offers a scalable alternative to real-world data collection, yet the "reality gap" remains a significant hurdle. Domain Randomisation (DR) is frequently employed to bridge this gap, but its implementation often relies on heuristics. This paper presents a systematic benchmark of DR for 6D object pose estimation, evaluating the impact of rendering quality and randomisation types. Our findings indicate that rendering fidelity is crucial: high-quality datasets significantly outperform larger, low-fidelity ones. Furthermore, we identify that randomising distractors and lighting is more effective than texture variation alone for robust sim-to-real transfer.

Introduction

The "reality gap"—the discrepancy between simulated environments and the physical world—often causes models trained in simulation to fail during real-world deployment. Domain Randomisation (DR) attempts to overcome this by introducing vast variability in simulation parameters (e.g., lighting, textures, camera angles), forcing the model to learn features invariant to these changes. Despite its popularity, there is little empirical guidance on which DR strategies are most effective. This study systematically investigates the trade-offs between rendering quality, dataset size, and randomisation types to provide a benchmark for future sim-to-real research.

Methodology

The study focuses on a 6D object pose estimation task, requiring the prediction of an object's 3D position ($x, y, z$) and 3D orientation (expressed as quaternions).

Architecture and Rendering

The researchers utilised a modified VGG-16 network. To simplify the optimization process and avoid balancing disparate loss scales, two separate networks were trained: one for position and another for orientation. For data generation, the Unity3D engine was used, comparing the standard Built-in renderer with the High Definition Render Pipeline (HDRP). This allowed for a controlled comparison across different levels of visual fidelity.

Overview of the experimental axes: Rendering Quality and Randomisation Type.

Experimental Design

The benchmarking was conducted through two primary experiments:

  1. Quality vs. Quantity: Eight incremental levels of rendering quality were defined, ranging from flat-shaded primitives to high-fidelity scenes with directional lighting, soft shadows, anti-aliasing, and dithering.
  2. Randomisation Flavours: Five types of DR were tested, including solid color variations, ImageNet backgrounds, random textures, and the inclusion of geometric distractors.
The eight levels of rendering quality used to evaluate the impact of visual fidelity on model performance.

Datasets

The training set consisted of 30,000 synthetic images per quality level. Testing was performed on a manually labeled real-world dataset of 400 images featuring four primitive shapes: a cube, triangular prism, hexagon, and rectangular prism. Ground truth for the real images was established using ArUco markers during a calibration phase.

Key Results and Discussion

The Primacy of Rendering Quality

A major finding of this benchmark is that rendering quality is not a negligible factor. High-fidelity images (Level 8) resulted in significantly lower errors compared to low-fidelity ones (Level 1). Specifically, $xy$-position error dropped from 4.37 cm to 0.53 cm, and orientation error decreased from 13.0° to 3.08°.

Interestingly, the "25% Rule" suggests that a hybrid dataset containing only 25% high-quality images can provide a performance boost nearly equivalent to a fully high-quality dataset, offering a strategy for efficient data generation.

Critical Features: Lights, Shadows, and Distractors

Lighting was identified as the single most impactful feature, with directional lights reducing position error by approximately 68.4%. Shadows were found to be essential for depth perception (z-position).

In terms of randomisation types, geometric distractors proved more effective than texture randomisation for position estimation. Distractors prevent the network from relying on simple color-blob detection, instead forcing it to learn the specific geometry of the target object. Models trained with both textures and distractors showed the best generalisation to novel real-world clutter, such as household items.

Conclusion

This benchmark demonstrates that for visual sim-to-real transfer, "more data" is not always the answer; "better data" often is. High-fidelity rendering and the inclusion of geometric distractors are key to bridging the reality gap for pose estimation tasks. Future work will explore whether these visual fidelity gains extend to learning complex contact dynamics in physics-based robotics tasks.

Summary updated

BibTeX
@inproceedings{alghonaim2020benchmarking,
  author = {Raghad Alghonaim and Edward Johns},
  title = {{Benchmarking Domain Randomisation for Visual Sim-to-Real Transfer}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2020},
  doi = {10.1109/icra48506.2021.9561134},
}
Figure