autonomousvision / neat

[ICCV'21] NEAT: Neural Attention Fields for End-to-End Autonomous Driving
MIT License
303 stars 47 forks source link

Local_evaluation.sh on CARLA42routes #17

Closed Sunyyyy closed 1 year ago

Sunyyyy commented 1 year ago

When I run Local_evaluation.sh, the following error will be reported in Town01 map. Can you give me some ideas to solve the problem? `========= Preparing RouteScenario_1 (repetition 0) =========

Setting up the agent .//model_ckpt/transfuser/model_seed1_39.pth Loading the world No more spawn points to use. Spawned 256 actors out of 500 Running the route /home/sunyyyy/anaconda3/envs/tfuse/lib/python3.7/site-packages/mmdet/models/utils/gaussian_target.py:227: UserWarning: floordiv is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor'). topk_clses = topk_inds // (height * width) /home/sunyyyy/anaconda3/envs/tfuse/lib/python3.7/site-packages/mmdet/models/utils/gaussian_target.py:229: UserWarning: floordiv is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor'). topk_ys = topk_inds // width WARNING: attempting to destroy an actor that is already dead: Actor 441 (vehicle.audi.tt) Destroying ego-vehicle! Trying to remove a non-existing actor id 441 Resetting ego-vehicle!

Error during the simulation:

trying to operate on a destroyed actor; an actor's function was called, but the actor is already destroyed.

Traceback (most recent call last): File ".//leaderboard/leaderboard/leaderboard_evaluator_local.py", line 351, in _load_and_run_scenario self.manager.run_scenario() File "/home/sunyyyy/桌面/transfuser/leaderboard/leaderboard/scenarios/scenario_manager_local.py", line 136, in run_scenario self._tick_scenario(timestamp) File "/home/sunyyyy/桌面/transfuser/leaderboard/leaderboard/scenarios/scenario_manager_local.py", line 164, in _tick_scenario self.scenario_tree.tick_once() File "/home/sunyyyy/anaconda3/envs/tfuse/lib/python3.7/site-packages/py_trees/behaviour.py", line 158, in tick_once for unused in self.tick(): File "/home/sunyyyy/anaconda3/envs/tfuse/lib/python3.7/site-packages/py_trees/composites.py", line 578, in tick for node in child.tick(): File "/home/sunyyyy/anaconda3/envs/tfuse/lib/python3.7/site-packages/py_trees/composites.py", line 578, in tick for node in child.tick(): File "/home/sunyyyy/anaconda3/envs/tfuse/lib/python3.7/site-packages/py_trees/behaviour.py", line 249, in tick new_status = self.update() File "/home/sunyyyy/桌面/transfuser/scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria_local.py", line 2000, in update location = self._actor.get_location() RuntimeError: trying to operate on a destroyed actor; an actor's function was called, but the actor is already destroyed.

Stopping the route Resetting ego-vehicle!

========= Results of RouteScenario_1 (repetition 0) ------ FAILURE =========

╒═════════════════════════════════╤═════════════════════╕ │ Start Time │ 2023-03-01 17:22:19 │ ├─────────────────────────────────┼─────────────────────┤ │ End Time │ 2023-03-01 17:27:53 │ ├─────────────────────────────────┼─────────────────────┤ │ Duration (System Time) │ 333.89s │ ├─────────────────────────────────┼─────────────────────┤ │ Duration (Game Time) │ 157.65s │ ├─────────────────────────────────┼─────────────────────┤ │ Ratio (System Time / Game Time) │ 0.472 │ ╘═════════════════════════════════╧═════════════════════╛

╒═══════════════════════╤═════════╤═════════╕ │ Criterion │ Result │ Value │ ├───────────────────────┼─────────┼─────────┤ │ RouteCompletionTest │ FAILURE │ 33.62 % │ ├───────────────────────┼─────────┼─────────┤ │ OutsideRouteLanesTest │ SUCCESS │ 0 % │ ├───────────────────────┼─────────┼─────────┤ │ CollisionTest │ FAILURE │ 6 times │ ├───────────────────────┼─────────┼─────────┤ │ RunningRedLightTest │ SUCCESS │ 0 times │ ├───────────────────────┼─────────┼─────────┤ │ RunningStopTest │ SUCCESS │ 0 times │ ├───────────────────────┼─────────┼─────────┤ │ InRouteTest │ SUCCESS │ │ ├───────────────────────┼─────────┼─────────┤ │ AgentBlockedTest │ SUCCESS │ │ ├───────────────────────┼─────────┼─────────┤ │ Timeout │ SUCCESS │ │ ╘═══════════════════════╧═════════╧═════════╛

Registering the route statistics ERROR: failed to destroy actor 560 : unable to destroy actor: not found ERROR: failed to destroy actor 568 : unable to destroy actor: not found ERROR: failed to destroy actor 624 : unable to destroy actor: not found ERROR: failed to destroy actor 699 : unable to destroy actor: not found`