[CoRL 2023] 论文"语言条件下的交通生成"的官方代码
Language Conditioned Traffic Generation
Shuhan Tan1, Boris Ivanovic2, Xinshuo Weng2, Marco Pavone2, Philipp Krähenbühl1
1UT Austin, 2 NVIDIA
Conference on Robot Learning (CoRL), 2023
Webpage | Video | Paper (Arxiv) | Demo (Colab)
2 Oct, 2023: Initial code release.30 Aug, 2023: Our paper was accepted at CoRL 2023!16 Jul, 2023: We released our paper on arXiv.We provide an online demo in Colab. You can try it without any local installation. This demo includes:
Please also refer to the code inside for demonstrations of basic model usage.
# Clone the code to local
git clone https://github.com/Ariostgx/lctgen.git
cd lctgen
# Create virtual environment
conda create -n lctgen python=3.8
conda activate lctgen
# You should install pytorch by yourself to make them compatible with your GPU
pip install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 -f https://download.pytorch.org/whl/torch_stable.html
# Install other dependency
pip install -r requirements.txtWe provide a demo dataset and a pretrained model for quick start.
This is meant to be a quick demonstration of the model usage. For complete training and evaluation, please refer to the next section.
Please download the demo dataset of 30 scene clips demo_data.zip from here.
And then unzip all the files inside into data/demo/waymo folder.
Please download the example model checkpoint example.ckpt from here.
And then put it into checkpoints folder.
By default we use wandb to log the training process. You will need to login to wandb first.
You can also use tensorboard by setting _C.LOGGER to tsboard in lctgen/config/path_cfg.py.
python lctgen/main.py --run-type eval --exp-config cfgs/demo_inference.yamlpython lctgen/main.py --run-type train --exp-config cfgs/demo_train.yamlWe follow the data processing process in TrafficGen:
waymo_open_dataset_motion_v_1_1_0/uncompressed/scenario/training_20sPATH_A, where you store the raw tf_record files.python scripts/process_all_data.py PATH_A PATH_BPATH_B is where you store the processed data._C.DATASET.DATA_PATH to PATH_B in lctgen/config/path_cfg.py.python lctgen/main.py --run-type eval --exp-config cfgs/inference.yamlpython lctgen/main.py --run-type train --exp-config cfgs/train.yamlWe use code in TrafficGen for data processing and visualization. TrafficGen related code is in trafficgen folder.
We thank Yuxiao Chen, Yulong Cao, and Danfei Xu for their insightful discussions. This project is supported by the National Science Foundation under Grant No. IIS-1845485.
We also thank authors of TrafficGen for their open source code.
@inproceedings{
tan2023language,
title={Language Conditioned Traffic Generation},
author={Shuhan Tan and Boris Ivanovic and Xinshuo Weng and Marco Pavone and Philipp Kraehenbuehl},
booktitle={7th Annual Conference on Robot Learning},
year={2023},
url={https://openreview.net/forum?id=PK2debCKaG}
}暂无开放 Issues,或尚未同步最近议题。