The official repo for the FSE 2025 paper "Multi-modal Traffic Scenario Generation for Autonomous Driving System Testing".
Project Homepage | GitHub | arXiv
TrafficComposer extracts information from both textual and visual inputs and merges the information into a comprehensive traffic IR.
To run TrafficComposer, user first needs to rename the trafficcomposer/config_template.py to trafficcomposer/config.py, and set the corresponding file paths.
cd trafficcomposer/gen_textual_ir
python gpt_text_parser.py
By default, TrafficComposer uses GPT-4o (gpt-4o-2024-05-13).
TrafficComposer proposes a visual information extractor using two pre-trained computer vision models, YOLOv10 and CLRNet.
To extract the lane dividing lines in the reference image, user needs CLRNet. User would need to follow CLRNet's instructions to install it and download the pre-trained weight file(s).
By default, the weigh file should be saved at trafficcomposer/gen_visual_ir.
cd trafficcomposer/gen_visual_ir
python extract_lane.py clrnet/configs/clrnet/clr_dla34_culane.py --load_from culane_dla34.pth --gpus 0
To extract the positions of actors in the reference image, user needs YOLOv10 to detect each actor in the reference image. User would need to follow YOLOv10's instructions to install it.
cd trafficcomposer/gen_visual_ir
python extract_actor.py
cd trafficcomposer/gen_visual_ir
python gen_visual_ir.py
python trafficcomposer.py
@article{10.1145/3729348,
author = {Tu, Zhi and Niu, Liangkun and Fan, Wei and Zhang, Tianyi},
title = {Multi-modal Traffic Scenario Generation for Autonomous Driving System Testing},
year = {2025},
issue_date = {July 2025},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
volume = {2},
number = {FSE},
url = {https://doi.org/10.1145/3729348},
doi = {10.1145/3729348},
journal = {Proc. ACM Softw. Eng.},
month = jun,
articleno = {FSE078},
numpages = {24},
keywords = {Autonomous Driving System, Software Testing, Traffic Scenario Generation}
}
