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

AttributeError: type object 'MetaDriveType' has no attribute 'LANE_CENTER_LINE' #22

Closed XiaomuWang closed 1 year ago

XiaomuWang commented 1 year ago

When I run python generate.py --gif --save_metadrive , I get the following error image

XiaomuWang commented 1 year ago

Both the trafficgen code and the metadrive code are the latest pulled. trafficgen metadrive

XiaomuWang commented 1 year ago

The initial debug is because the metadrive type does not match

XiaomuWang commented 1 year ago

I want to know which version or branch to use metadrive?

XiaomuWang commented 1 year ago

I have used the waymo branch and the 0.3.0.1 branch to run python run_metadrive.py --dataset /workspace/datasets/generated_1385_training/validation/, and the following error message will be reported. Is it possible to specify the branch of the metadrive? _ModuleNotFoundError: No module named 'metadrive.scenario.scenariodescription' when I used the main branch to run it . and the following error message will be reported KeyError: "'{'replay'}' does not exist in existing config.

Alan-LanFeng commented 1 year ago

Thanks for the response. This error is due to the scenarioNet development, which will be fixed soon. Before that you can remove the --save_metadrive flag.