百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

lctgen

> 编程语言
开源

[CoRL 2023] 论文"语言条件下的交通生成"的官方代码

100 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

[CoRL 2023] 论文"语言条件下的交通生成"的官方代码

Language Conditioned Traffic Generation

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)

News

  • 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.

Demo

We provide an online demo in Colab. You can try it without any local installation. This demo includes:

  1. Generate traffic scene with existing Structured Representation.
  2. Generate traffic scene from existing LLM output.
  3. Generate traffic scene with natural language and GPT-4 (requires OpenAI API Key).

Please also refer to the code inside for demonstrations of basic model usage.

Setup local environment

bash
# 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.txt

Quick start

We 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.

Download demo data

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.

Download pretrained model

Please download the example model checkpoint example.ckpt from here.

And then put it into checkpoints folder.

Setup logger

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.

Evaluate with demo data

bash
python lctgen/main.py  --run-type eval --exp-config cfgs/demo_inference.yaml

Training with demo data

bash
python lctgen/main.py  --run-type train --exp-config cfgs/demo_train.yaml

Training and evaluation

Download full dataset

We follow the data processing process in TrafficGen:

  1. Download from Waymo Open Dataset:
  • Register your Google account in: https://waymo.com/open/
  • Open the following link with your Google account logged in: https://console.cloud.google.com/storage/browser/waymo_open_dataset_motion_v_1_1_0
  • Download all the proto files from waymo_open_dataset_motion_v_1_1_0/uncompressed/scenario/training_20s
  • Move download files to PATH_A, where you store the raw tf_record files.
  1. Data Preprocess
bash
python scripts/process_all_data.py PATH_A PATH_B
  • Note: PATH_B is where you store the processed data.
  1. Change _C.DATASET.DATA_PATH to PATH_B in lctgen/config/path_cfg.py.

Evaluate with demo data

bash
python lctgen/main.py  --run-type eval --exp-config cfgs/inference.yaml

Training with full data

bash
python lctgen/main.py  --run-type train --exp-config cfgs/train.yaml

Related repositories

We use code in TrafficGen for data processing and visualization. TrafficGen related code is in trafficgen folder.

To Do

  • Add instructive scene editing.
  • Add dataset of input text descriptions and LLM outputs.
  • Initial repo & demo

Acknowledgement

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.

Citation

latex
@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· 5 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言