metadriverse / trafficgen

[ICRA 2023] The official code for paper "TrafficGen: Learning to Generate Diverse and Realistic Traffic Scenarios"
Apache License 2.0
153 stars 24 forks source link

Generate trajectories in existing scences #20

Closed QC625 closed 1 year ago

QC625 commented 1 year ago

Which script should I run if I want to generate trajectories in existing scenes(already preprocessed)?

Alan-LanFeng commented 1 year ago

There is no such script currently. However, you can modify the config parameters if you want to do this. Pull the latest commit and change 'context_num' in the config to 32. Then you can generate trajectories in existing scenes. 'context_num' means 'How many existing vehicles' we want to keep unchanged during generation. The maximum vehicle number in trafficgen is 32.