README.md
November 7, 2025 Β· View on GitHub
Generating Multimodal Driving Scenes via Next-Scene Prediction
Yanhao Wu1,2, Haoyang Zhang2, Tianwei Lin2, Lichao Huang2,
Shujie Luo2, Rui Wu2, Congpei Qiu1, Wei Ke1, Tong Zhang3, 4,
1 Xi'an Jiaotong University, 2 Horizon Robotics, 3 EPFL, 4 University of Chinese Academy of Sciences
Accepted to CVPR 2025
π What is UMGen?
UMGen generates multimodal driving scenes, where each scene integrates:
Ego-vehicle actions, maps, traffic agents, and images.
π¬ Autoregressive Scene Generation
All visual elements in the video are generated by UMGen.
https://github.com/user-attachments/assets/afe62434-1a9e-44dc-b1bd-b67d48e1b693
π€ User-Specified Scenario Generation
UMGen also supports user-specified scenario generation.
In this video, we control the agent to simulate a cut-in maneuver scenario.
https://github.com/user-attachments/assets/a3224d85-08df-4e36-a47d-f3e88f2b7ad6
π More Information
For more videos and details, please refer to our and
π Quick Start
Set up a new virtual environment
conda create -n UMGen python=3.8 -y
conda activate UMGen
Install dependency packpages
UMGen_path="path/to/UMGen"
cd ${UMGen_path}
pip3 install --upgrade pip
pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116
pip3 install -r requirements.txt
Prepare the data
Download the tokenized data and pretrained weights from https://drive.google.com/drive/folders/1rJEVxWNk4MH_FPdqUMgdjV_PHwKJMS-3?usp=sharing
The directory structure should be:
UMGen/
βββ data
β βββ controlled_scenes/
| βββ XX
β βββ tokenized_origin_scenes/
β βββ XX
| βββ weights/
β βββ image_var.tar
| βββ map_vae.ckpt
| βββ UMGen_Large.pt
βββ projects/
βοΈ Inference Usage
ποΈ Infer Future Frames Freely
Generate future frames automatically without any external control signals.
python projects/tools/evaluate.py --infer_task video --set_num_new_frames 30
πΉοΈInfer Future Frames with Control
Generate future frames under specific control constraints, such as predefined trajectories or object behavior control.
python projects/tools/evaluate.py --infer_task control --set_num_new_frames 30
π§© To-Do List
- Release more tokenized scene data
- Release the code for obtaining scene tokens using the VAE models
- Release the diffusion code to enhance the videos
π¬ Contact
For any questions or collaborations, feel free to contact me : ) π§ wuyanhao@stu.xjtu.edu.cn