dotchen / WorldOnRails

(ICCV 2021, Oral) RL and distillation in CARLA using a factorized world model
https://dotchen.github.io/world_on_rails/
MIT License
163 stars 28 forks source link

LBC_ agent error #43

Closed panpan-77 closed 2 years ago

panpan-77 commented 2 years ago

hi,Dian About NoCrash routes. I try to use LBC , but the error is as follows:

Could not set up the required agent:

'LBCAgent' object has no attribute 'crop_top'

Traceback (most recent call last): File "/home//carla1/WorldOnRails-release/leaderboard/leaderboard/nocrash_evaluator.py", line 239, in _load_and_run_scenario self.agent_instance = getattr(self.module_agent, agent_class_name)(args.agent_config) File "/home//carla1/WorldOnRails-release/leaderboard/leaderboard/autoagents/autonomous_agent.py", line 45, in init self.setup(path_to_conf_file) File "autoagents/lbc_agent.py", line 51, in setup height=240-self.crop_top-self.crop_bottom, width=480, AttributeError: 'LBCAgent' object has no attribute 'crop_top'

I really didn't find that attribute. Is there anything I missed?

thank you in advance!

dotchen commented 2 years ago

Hi @panpan-77 ,

Please make sure you are using a config file specified in the README.