Exploring Generative AI for Sim2Real in Driving Data Synthesis

Haonan Zhao, Yiting Wang, Thomas Bashford-Rogers, Valentina Donzella, Kurt Debattista

Abstract

Training autonomous driving systems requires vast amounts of accurately labeled data, which is often prohibitively expensive to collect and annotate in the real world. While simulators offer an infinite supply of labeled data, the "domain gap" between synthetic and real-world imagery limits their utility. This paper evaluates the efficacy of Generative AI—specifically Generative Adversarial Networks (GANs) and Diffusion models—in bridging this Sim2Real gap by transforming simulator-generated semantic maps into photo-realistic driving scenes. Our findings indicate that while GANs excel with high-quality manual labels, Diffusion-based models like ControlNet demonstrate superior robustness and structural fidelity when processing the noisy labels typical of automated simulators.

Introduction

The development of robust autonomous driving (AD) systems relies on the availability of massive, diverse datasets. Collecting real-world data is not only time-consuming and costly but also poses safety risks when attempting to capture rare edge cases, such as accidents or extreme weather conditions. Driving simulators like CARLA provide a solution by generating infinite scenarios with perfect ground-truth labels. However, the visual discrepancy between simulator graphics and real-world physics—the domain gap—often leads to poor performance when models trained in simulation are deployed on real roads.

To address this, researchers are increasingly turning to image-to-image translation. By using semantic label maps (structural "blueprints") from a simulator and applying generative models to "paint" them with real-world textures, we can create synthetic datasets that are both perfectly labeled and visually realistic.

Methodology

This study compares three state-of-the-art generative architectures to determine which is best suited for the Sim2Real transition:

  1. Pix2pixHD (GAN): A high-resolution GAN that utilizes a coarse-to-fine generator and multi-scale discriminator architecture to produce detailed images from semantic maps.
  2. OASIS (GAN): A modern GAN variant that re-imagines the discriminator as a segmentation network. This design is intended to better preserve the semantic integrity of the input map during the generation process.
  3. ControlNet (Diffusion): A diffusion-based model built upon a pre-trained Stable Diffusion backbone. ControlNet incorporates a "trainable copy" of the model's weights to maintain strict spatial control based on the input semantic map, while leveraging the vast prior knowledge of real-world imagery contained in the base diffusion model.

Experimental Setup

The models were trained on the Cityscapes dataset, a benchmark for urban street scenes, to learn the visual style and textures of real-world driving. Testing was conducted using labels from the SHIFT dataset, which is derived from the CARLA simulator. This setup allowed researchers to evaluate how well models trained on "clean" manual labels (Cityscapes) could generalize to "noisy" simulator-generated labels (SHIFT).

Key Insights and Analysis

The "Clean Label" Bias in GANs

Experimental results revealed a significant performance disparity for GAN-based methods. OASIS achieved the highest scores when tested on manual Cityscapes labels, but its performance dropped sharply when faced with simulator-generated labels. This is largely due to the difference in edge characteristics; manual labels are often smoother, while simulator labels can be pixel-perfect but geometrically different from what the GAN observed during training.

Diffusion’s Structural Fidelity and Robustness

ControlNet proved to be the most resilient model during the Sim2Real transition. Because it is built on a pre-trained model that already understands the visual concepts of "cars," "trees," and "roads," it can effectively "fill in the blanks" when provided with imperfect or noisy simulator labels. Unlike GANs, which must learn these concepts from scratch during the training phase, the Diffusion model's prior knowledge acts as a stabilizer.

Artifact Reduction and Spatial Logic

A recurring issue in GAN-based synthesis is the presence of "checkerboard artifacts" caused by upsampling layers. The iterative denoising process inherent to Diffusion models naturally mitigates these artifacts, resulting in higher "naturalness" scores. Furthermore, ControlNet demonstrated a superior ability to handle complex spatial relationships. While GANs occasionally misidentified large occluding objects (like trucks) as part of the background, ControlNet maintained clear boundaries and realistic lighting for occluded subjects.

Results

Evaluation was conducted across two primary axes: image quality (naturalness) and perception (semantic accuracy).

  • Cityscapes (Manual Labels): OASIS led the field, achieving a mean Intersection over Union (mIoU) of 77.0 and a Fréchet Inception Distance (FID) of 52.394.
  • SHIFT (Simulator Labels): The rankings reversed. ControlNet achieved the highest mIoU (34.1) and the best scores for naturalness, as measured by BRISQUE (14.625) and NIQE (9.175).

Qualitatively, while GANs produced blurry or distorted results when processing simulator labels, ControlNet synthesized clear textures and realistic lighting, even when the input labels deviated from real-world standards.

Conclusion and Future Work

Generative AI, particularly Diffusion-based models, offers a promising pathway for creating high-fidelity synthetic training data. ControlNet’s robustness to noisy simulator labels makes it a strong candidate for practical Sim2Real pipelines.

However, challenges remain. Current models lack color consistency (e.g., a car's color is randomly assigned rather than following simulator attributes). Future research should focus on incorporating instance-level attributes and exploring more sophisticated prompt engineering to increase the diversity of synthesized scenes. Additionally, the development of specialized Sim2Real metrics is necessary to better align automated evaluation with the specific requirements of autonomous driving perception tasks.

Summary updated

BibTeX
@inproceedings{zhao2024exploring,
  author = {Haonan Zhao and Yiting Wang and Thomas Bashford-Rogers and Valentina Donzella and Kurt Debattista},
  title = {{Exploring Generative AI for Sim2Real in Driving Data Synthesis}},
  booktitle = {IV},
  year = {2024},
  doi = {10.1109/iv55156.2024.10588493},
}
Figure