TL;DR
This paper introduces a novel diffusion-based pipeline to bridge the "sim2real" gap in pedestrian detection. By modifying a diffusion model to simultaneously generate realistic images and their corresponding bounding box labels, the authors successfully augment simulated datasets (like those from GTA V) to achieve up to a 27.3% boost in Average Precision on real-world benchmarks.
What Problem Does This Paper Address?
Training deep learning models for pedestrian detection requires massive amounts of labeled data. While simulation platforms (like CARLA or GTA V) provide an inexpensive way to generate millions of perfectly labeled frames, there is a catch: the sim2real gap. Simulated images often lack the complex textures, lighting, and noise found in the real world, causing models trained purely on "fake" data to underperform when deployed on real streets.
Existing solutions often involve style transfer or GANs, but these can be unstable or fail to capture the full diversity of real-world distributions. The authors tackle the challenge of creating a generative process that not only looks real but also provides accurate, automated labels for the generated content.
Methods
The core innovation is a modified Denoising Diffusion Probabilistic Model (DDPM). Standard diffusion models are excellent at generating high-fidelity images from noise, but they don't "know" where the objects are within those images.
To solve this, the authors appended a Faster R-CNN (FRCNN) module to the end of the diffusion process. During training, the total loss function couples the standard diffusion loss (learning to generate pixels) with an FRCNN detection loss (learning to identify bounding boxes). This allows the model to learn the spatial distribution of pedestrians alongside their visual appearance.
The authors also explored a two-stage pipeline for more complex datasets like CityPersons. Because the model struggled to generate high-quality RGB images directly for that domain, they used diffusion to generate semantic segmentation maps and labels, then used a pix2pix GAN to "translate" those maps into realistic street scenes.
Datasets
The study utilizes a mix of simulated and real-world datasets:
- Simulated: MOTSynth (a massive dataset generated in GTA V), which serves as the base training set.
- Real-World (for Diffusion Training): MOT17 (stationary cameras) and CityPersons (dashcam footage).
- Evaluation: The models are tested on the real-world MOT17 benchmark to measure how well the synthetic augmentation closes the sim2real gap.
Key Insights and Ideas
- Simultaneous Labeling is Key: By integrating the detector (FRCNN) into the generative training loop, the model ensures that the generated pedestrians actually align with the generated bounding boxes.
- Resolution Matching Matters: The authors found that the biggest performance jumps occurred when the resolution of the simulated data matched the resolution of the diffusion-generated data (256x256). This suggests that "resolution consistency" is a hidden factor in the sim2real gap.
- Cross-Domain Benefits: Interestingly, augmenting with data generated from the CityPersons distribution (dashcam) still improved performance on the MOT17 evaluation (stationary camera). This indicates that learning any real-world distribution is often better than relying solely on simulation.
- Quality over Quantity: In some experiments, adding 1,000 high-quality generated images provided better results than adding 10,000, likely because smaller simulated datasets are more prone to overfitting when overwhelmed by lower-resolution generated data.
Key Results
The quantitative improvements are significant, especially when evaluating at the resolution the diffusion model was trained on:
- Baseline: Training on purely simulated data (MOTSynth-A) yielded an AP of 23.0% on MOT17 (at 256x256).
- With Augmentation: Adding 10k MOT17-like generated images boosted the AP to 50.3%—a relative increase of 27.3%.
- Full Resolution: Even when evaluating on full-resolution MOT17 (1920x1080), augmenting the simulated baseline with 1k generated images improved AP by 3.7%.
Limitations and Future Work
Despite the success, a few hurdles remain:
- Resolution Constraints: Due to hardware limits, the diffusion model only generated images at 256x256. Real-world datasets are often 1080p or higher. Scaling this method to high-resolution generation is a primary goal for future work.
- Label Noise: The authors noted some missed labels in the generated data. Using more powerful "teacher" detectors or training the diffusion model for longer could produce more reliable annotations.
- Computational Cost: Diffusion models are notoriously slow to sample compared to GANs, which might limit the speed at which massive augmented datasets can be produced.
Summary updated