DrivingDiffusion: Layout-Guided Multi-view Driving Scenarios Video Generation with Latent Diffusion Model

Xiaofan Li, Yifu Zhang, Xiaoqing YeECCV 2024

Abstract

DrivingDiffusion is a multi-stage generative framework designed to synthesize realistic, multi-view driving videos controlled by 3D spatial layouts. By combining a novel consistency module with localized prompting, the framework produces high-fidelity data that maintains strict spatial and temporal coherence. This approach serves as a powerful data augmentation tool for autonomous driving perception models, addressing the high cost of manual annotation and the technical hurdles of cross-view and temporal consistency in synthetic data generation.

Introduction

Modern autonomous driving systems rely heavily on Bird’s-Eye-View (BEV) representations, which require massive amounts of multi-view video data for training. However, collecting and manually annotating such data—labeling 3D bounding boxes across multiple synchronized cameras over time—is prohibitively expensive.

While generative AI models like Stable Diffusion can create high-quality images, applying them to driving scenarios presents three major hurdles:

  1. Cross-View Consistency: Objects must align perfectly across adjacent camera views (e.g., Front and Front-Left).
  2. Temporal Coherence: Objects must remain stable without flickering or disappearing between frames.
  3. Layout Fidelity: Generated pixels must strictly adhere to provided 3D bounding boxes and road structures to be useful for training downstream perception tasks.
DrivingDiffusion generates consistent multi-view videos from manmade 3D layouts and trajectories.

Methodology

The authors propose a tripartite methodology to manage the complexity of high-dimensional video generation by decoupling spatial and temporal dimensions into manageable stages.

Multi-Stage Generation

  • Stage 1: Multi-View Keyframe Generation: The model first generates a single multi-view "panorama" (six camera views) for the initial timestamp, acting as a spatial anchor.
  • Stage 2: Single-View Video Synthesis: Using the keyframe as a starting point, the model generates temporal sequences for each camera independently. To maintain consistency without training six separate models, Optical Flow Priors—statistical motion trends for each camera angle—are encoded as tokens.
  • Stage 3: Post-Processing Restoration: A specialized model refines generated frames to fix inconsistencies that might emerge in long-duration videos using a sliding window approach.

Technical Innovations

DrivingDiffusion introduces several key components to ensure high-fidelity generation:

  • 3D Layout Controller: Projects 3D boxes and road maps into 2D camera planes, encoding category and instance IDs into RGB values to ensure the model accurately places specific objects.
  • Consistency Module: Implements specialized attention mechanisms. For spatial consistency, a view "looks" at its neighbors; for temporal consistency, a frame attends to the first and previous frames.
  • Local Prompts: Instead of a single global text prompt, CLIP-based prompts for specific instances (e.g., "car") are masked to their exact layout positions, significantly improving the visual quality of small or distant objects.
The DrivingDiffusion architecture features a 3D Layout Controller, Local Prompts, and a consistency-focused attention mechanism.

Key Insights

  • Decoupling Space and Time: Solving for all cameras and frames simultaneously is computationally overwhelming. Generating a consistent multi-view "anchor" first achieves better stability.
  • The Power of Local Guidance: Global prompts often cause models to ignore small layout details. Forcing attention to specific object classes at specific pixel coordinates via Local Prompts ensures higher layout fidelity.
  • Geometric Constraints: The model uses a pre-trained network to predict relative poses between frames. Deviations from ground-truth camera geometry are penalized, ensuring physical consistency in the generated world.

Results and Evaluation

The model was evaluated on the nuScenes dataset, achieving state-of-the-art performance:

  • Visual Quality: DrivingDiffusion reached a Fréchet Inception Distance (FID) of 15.83 and a Fréchet Video Distance (FVD) of 346, outperforming existing methods like BEVGen and DriveDreamer.
  • Layout Accuracy: In segmentation and detection tests (using models like CVT and BEVFusion), the performance gap between real data and DrivingDiffusion-generated data was significantly smaller than competitors.
  • Data Augmentation: Adding 6,000 synthetic frames to the training set improved the nuScenes Detection Score (NDS) from 0.412 to 0.434 and boosted tracking performance (AMOTA) from 0.479 to 0.522.

Conclusion

While DrivingDiffusion effectively maintains consistency, long-term drift over several minutes remains a challenge for diffusion-based models. Future work may evolve this framework into a "world model" capable of predicting future scenarios based on ego-vehicle actions and incorporating more diverse inputs like LiDAR point clouds or occupancy grids for even more precise control.

Summary updated

BibTeX
@inproceedings{li2024drivingdiffusion,
  author = {Xiaofan Li and Yifu Zhang and Xiaoqing Ye},
  title = {{DrivingDiffusion: Layout-Guided Multi-view Driving Scenarios Video Generation with Latent Diffusion Model}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73229-4\_27},
}
Figure