OpenDriveLab / TCP

[NeurIPS 2022] Trajectory-guided Control Prediction for End-to-end Autonomous Driving: A Simple yet Strong Baseline.
Apache License 2.0
365 stars 48 forks source link

from agents.navigation.global_route_planner import GlobalRoutePlanner ModuleNotFoundError: No module named 'agents.navigation' #68

Closed Mr-ChenSH closed 3 months ago

Mr-ChenSH commented 3 months ago

run sh leaderboard/scripts/data_collection.sh encounter this problem

penghao-wu commented 3 months ago

Could you please modify the issue title to make it concise? For you problem, please make sure you set this correctly https://github.com/OpenDriveLab/TCP/blob/9ec4db0f0424801cdd607f1de930290830c5e88e/leaderboard/scripts/data_collection.sh#L2.

Mr-ChenSH commented 3 months ago

Traceback (most recent call last): File "/home/cybersec/TCP-main/leaderboard/leaderboard/leaderboard_evaluator.py", line 34, in from leaderboard.scenarios.scenario_manager import ScenarioManager File "/home/cybersec/TCP-main/leaderboard/leaderboard/scenarios/scenario_manager.py", line 25, in from leaderboard.autoagents.agent_wrapper import AgentWrapper, AgentError File "/home/cybersec/TCP-main/leaderboard/leaderboard/autoagents/agent_wrapper.py", line 21, in from leaderboard.autoagents.autonomous_agent import Track File "/home/cybersec/TCP-main/leaderboard/leaderboard/autoagents/autonomous_agent.py", line 17, in from leaderboard.utils.route_manipulation import downsample_route File "/home/cybersec/TCP-main/leaderboard/leaderboard/utils/route_manipulation.py", line 22, in from agents.navigation.global_route_planner import GlobalRoutePlanner ModuleNotFoundError: No module named 'agents.navigation'

Mr-ChenSH commented 3 months ago

export CARLA_ROOT=/home/cybersec/Work/Docker/carla/share/PythonAPI/carla Even after adding it, there is still an error message

penghao-wu commented 3 months ago

The structure of your carla directory looks a bit weird. Why is there a share directory? I think in your case, you need to set CARLA_ROOT to /home/cybersec/Work/Docker/carla/share

Mr-ChenSH commented 3 months ago

sorry, I have already resolved this error

Mr-ChenSH commented 3 months ago

Traceback (most recent call last): File "/home/cybersec/TCP-main/leaderboard/leaderboard/leaderboard_evaluator.py", line 350, in _load_and_run_scenario self._load_and_wait_for_world(args, config.town, config.ego_vehicles) File "/home/cybersec/TCP-main/leaderboard/leaderboard/leaderboard_evaluator.py", line 232, in _load_and_wait_for_world self.traffic_manager.set_synchronous_mode(False) AttributeError: 'LeaderboardEvaluator' object has no attribute 'traffic_manager'

Registering the route statistics But another new error has occurred

Mr-ChenSH commented 3 months ago

But another new error has occurred

penghao-wu commented 3 months ago

Please check whether traffic_manager is successfully set here https://github.com/OpenDriveLab/TCP/blob/9ec4db0f0424801cdd607f1de930290830c5e88e/leaderboard/leaderboard/leaderboard_evaluator.py#L111

Mr-ChenSH commented 3 months ago

8PIQVBV~M0$97ZSWK{UM0P7

Mr-ChenSH commented 3 months ago

It's here, I haven't made any changes

penghao-wu commented 3 months ago

I mean you can debug a little bit here to see whether it is successfully setup here in your case or it goes to the except branch.

Mr-ChenSH commented 3 months ago

Can I run eval directly after running the train

Mr-ChenSH commented 3 months ago

I encountered this issue while running eval image

penghao-wu commented 3 months ago

Have you modified the code? The line 5 in TCP/model.py should be https://github.com/OpenDriveLab/TCP/blob/9ec4db0f0424801cdd607f1de930290830c5e88e/TCP/model.py#L5

Mr-ChenSH commented 3 months ago

yes,I modified it

Mr-ChenSH commented 3 months ago

The current mistake is as follows: d1e69ec3ac0aaa3ea228407c8195ad8

penghao-wu commented 3 months ago

Please first try the original code without your modifications to see whether it works.

Mr-ChenSH commented 3 months ago

image Why is it automatically interrupted at this point during verification? It has already been run five times

penghao-wu commented 3 months ago

I think it is related to your network issue.

Mr-ChenSH commented 3 months ago

image I downloaded it online, but now I'm encountering this issue. Do I need to include the dataset in the project during verification

Mr-ChenSH commented 3 months ago

There is no dataset in this project

penghao-wu commented 3 months ago

You don't need dataset for evaluation. Make sure you strictly follow the readme for the installation of carla and this repo.

Mr-ChenSH commented 3 months ago

I have completed it, thank you very much!