Giter Site home page Giter Site logo

Comments (10)

ap229997 avatar ap229997 commented on May 27, 2024

I updated the code. Try again and let me know if there are still some issues.

from transfuser.

wanhaodong98 avatar wanhaodong98 commented on May 27, 2024

Thank you for your quickly reply, but there are still problem.
Problem reading checkpoint. Route id 60 larger than maximum number of routes 32

========= Preparing RouteScenario_0 (repetition 0) =========
> Setting up the agent
routes_town05_short_10_01_02_38_08
> Loading the world
> Running the route
Traceback (most recent call last):
File "/home/harli/transfuser-main/leaderboard/leaderboard/scenarios/scenario_manager.py", line 152, in _tick_scenario
ego_action = self._agent()
File "/home/harli/transfuser-main/leaderboard/leaderboard/autoagents/agent_wrapper.py", line 82, in call
return self._agent()
File "/home/harli/transfuser-main/leaderboard/leaderboard/autoagents/autonomous_agent.py", line 115, in call
control = self.run_step(input_data, timestamp)
File "leaderboard/team_code/auto_pilot.py", line 177, in run_step
self.save(near_node, far_node, near_command, steer, throttle, brake, target_speed, data)
File "/home/harli/transfuser-main/leaderboard/team_code/base_agent.py", line 303, in save
'is_vehicle_present': self.is_vehicle_present,
AttributeError: 'AutoPilot' object has no attribute 'is_vehicle_present'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 477, in main
leaderboard_evaluator.run(arguments)
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 414, in run
self._load_and_run_scenario(args, config)
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 351, in _load_and_run_scenario
self.manager.run_scenario()
File "/home/harli/transfuser-main/leaderboard/leaderboard/scenarios/scenario_manager.py", line 136, in run_scenario
self._tick_scenario(timestamp)
File "/home/harli/transfuser-main/leaderboard/leaderboard/scenarios/scenario_manager.py", line 159, in _tick_scenario
raise AgentError(e)
leaderboard.autoagents.agent_wrapper.AgentError: 'AutoPilot' object has no attribute 'is_vehicle_present'

from transfuser.

ap229997 avatar ap229997 commented on May 27, 2024

Sorry, I think I missed a few things earlier when I pushed the code. I updated the code again.

from transfuser.

wanhaodong98 avatar wanhaodong98 commented on May 27, 2024

Sorry, I think the file you modified has space errors. I fixed them, but there are still errorsImKGvf.md.png
Problem reading checkpoint. Route id 60 larger than maximum number of routes 32

========= Preparing RouteScenario_0 (repetition 0) =========
> Setting up the agent
routes_town05_short_10_01_10_46_54
> Loading the world
> Running the route
Traceback (most recent call last):
File "/home/harli/transfuser-main/leaderboard/leaderboard/scenarios/scenario_manager.py", line 152, in _tick_scenario
ego_action = self._agent()
File "/home/harli/transfuser-main/leaderboard/leaderboard/autoagents/agent_wrapper.py", line 82, in call
return self._agent()
File "/home/harli/transfuser-main/leaderboard/leaderboard/autoagents/autonomous_agent.py", line 115, in call
control = self.run_step(input_data, timestamp)
File "leaderboard/team_code/auto_pilot.py", line 177, in run_step
self.save(near_node, far_node, near_command, steer, throttle, brake, target_speed, data)
File "/home/harli/transfuser-main/leaderboard/team_code/base_agent.py", line 307, in save
'should_slow': self.should_slow,
AttributeError: 'AutoPilot' object has no attribute 'should_slow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 477, in main
leaderboard_evaluator.run(arguments)
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 414, in run
self._load_and_run_scenario(args, config)
File "leaderboard/leaderboard/leaderboard_evaluator.py", line 351, in _load_and_run_scenario
self.manager.run_scenario()
File "/home/harli/transfuser-main/leaderboard/leaderboard/scenarios/scenario_manager.py", line 136, in run_scenario
self._tick_scenario(timestamp)
File "/home/harli/transfuser-main/leaderboard/leaderboard/scenarios/scenario_manager.py", line 159, in _tick_scenario
raise AgentError(e)
leaderboard.autoagents.agent_wrapper.AgentError: 'AutoPilot' object has no attribute 'should_slow'

from transfuser.

ap229997 avatar ap229997 commented on May 27, 2024

Thanks a lot for pointing this out. I just realized that I had updated base_agent.py at some point but forgot to update auto_pilot.py. Hopefully, the erros are fixed now.

from transfuser.

wanhaodong98 avatar wanhaodong98 commented on May 27, 2024

Thank you again for your help. The program can run normally, but Carla frame rate is very low. Is that normal?

from transfuser.

ap229997 avatar ap229997 commented on May 27, 2024

Do you mean the CARLA server fps is low or the data generation rate is slow?

from transfuser.

wanhaodong98 avatar wanhaodong98 commented on May 27, 2024

CARLA server fps is low.

from transfuser.

ap229997 avatar ap229997 commented on May 27, 2024

The server is run at 20 fps as per the leaderboard framework. This can be changed in leaderboard_evaluator.py.

from transfuser.

wanhaodong98 avatar wanhaodong98 commented on May 27, 2024

Thank your for your reply. This problem has been solved. I will close this issue.

from transfuser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.