Closed CFXgoon closed 4 years ago
@CFXgoon for questions about highway-env, you can add issues on the original repo https://github.com/eleurent/highway-env/issues
The longitudinal and lateral control is achieved here: https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L10
The
steering_control()
method (https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L112) chooses a steering command to track atarget_lane
, while thevelocity_control
chooses an acceleration command to reach the desiredtarget_velocity
: https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L142
Ok, Thanks a lot! ! !
@CFXgoon for questions about highway-env, you can add issues on the original repo https://github.com/eleurent/highway-env/issues
The longitudinal and lateral control is achieved here: https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L10
The
steering_control()
method (https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L112) chooses a steering command to track atarget_lane
, while thevelocity_control
chooses an acceleration command to reach the desiredtarget_velocity
: https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L142
Hi,i find a problem that when i find the metadata.json,the information is: "model": { "advantage": { "layers": [], "out": null, "type": "MultiLayerPerceptron" }, "base_module": { "out": null, "type": "MultiLayerPerceptron" }, "in": 25, "layers": [ 256, 256 ], "out": 5, "type": "DuelingNetwork", "value": { "layers": [], "out": null, "type": "MultiLayerPerceptron" } }, the "out" is null,and the highway environment is not match with the highway_env.py and how can i do next? Thanks!!!
@CFXgoon for questions about highway-env, you can add issues on the original repo https://github.com/eleurent/highway-env/issues The longitudinal and lateral control is achieved here: https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L10 The
steering_control()
method (https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L112) chooses a steering command to track atarget_lane
, while thevelocity_control
chooses an acceleration command to reach the desiredtarget_velocity
: https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L142Hi,i find a problem that when i find the metadata.json,the information is: "model": { "advantage": { "layers": [], "out": null, "type": "MultiLayerPerceptron" }, "base_module": { "out": null, "type": "MultiLayerPerceptron" }, "in": 25, "layers": [ 256, 256 ], "out": 5, "type": "DuelingNetwork", "value": { "layers": [], "out": null, "type": "MultiLayerPerceptron" } }, the "out" is null,and the highway environment is not match with the highway_env.py and how can i do next? Thanks!!!
@CFXgoon for questions about highway-env, you can add issues on the original repo https://github.com/eleurent/highway-env/issues
The longitudinal and lateral control is achieved here: https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L10
The
steering_control()
method (https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L112) chooses a steering command to track atarget_lane
, while thevelocity_control
chooses an acceleration command to reach the desiredtarget_velocity
: https://github.com/eleurent/highway-env/blob/master/highway_env/vehicle/controller.py#L142
Hi, i find that the terminal information is this:
File "experiments.py", line 148, in
So you had two questions:
KeyboardInterrupt
, isn't it?Hi @CFXgoon ,
After updating pytorch, I could finally reproduce your initial error: IndexError: too many indices for tensor of dimension 2
. It seems to be caused by a change of behaviour in recent pytorch versions, and should be fixed now.
Hi @CFXgoon , After updating pytorch, I could finally reproduce your initial error:
IndexError: too many indices for tensor of dimension 2
. It seems to be caused by a change of behaviour in recent pytorch versions, and should be fixed now.
Thanks a lot !!!
Hello!I have a problem in the ego_attention.json,The problem is when use the ego_attention.json to train the agent in the env_obs_attention, the error is happend: [ERROR] Preferred device cuda:best unavailable, switching to default cpu INFO: Creating monitor directory out/HighwayEnv/DQNAgent/run_20200408-221242_4475 Traceback (most recent call last): File "experiments.py", line 148, in
main()
File "experiments.py", line 43, in main
evaluate(opts[''], opts[''], opts)
File "experiments.py", line 75, in evaluate
display_rewards=not options['--no-display'])
File "/home/cfxgg/rl-agents-master/rl_agents/trainer/evaluation.py", line 82, in init
self.agent.set_writer(self.writer)
File "/home/cfxgg/rl-agents-master/rl_agents/agents/deep_q_network/pytorch.py", line 98, in set_writer
dtype=torch.float, device=self.device))
File "/home/cfxgg/conda/envs/test/lib/python3.7/site-packages/tensorboardX/writer.py", line 804, in add_graph
self._get_file_writer().add_graph(graph(model, input_to_model, verbose, profile_with_cuda, kwargs))
File "/home/cfxgg/conda/envs/test/lib/python3.7/site-packages/tensorboardX/pytorch_graph.py", line 344, in graph
result = model(args)
File "/home/cfxgg/conda/envs/test/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in call
result = self.forward(input, kwargs)
File "/home/cfxgg/rl-agents-master/rl_agents/agents/common/models.py", line 284, in forward
ego_embeddedatt, = self.forward_attention(x)
File "/home/cfxgg/rl-agents-master/rl_agents/agents/common/models.py", line 296, in forward_attention
ego, others, mask = self.split_input(x)
File "/home/cfxgg/rl-agents-master/rl_agents/agents/common/models.py", line 289, in split_input
ego = x[:, 0:1, :]
IndexError: too many indices for tensor of dimension 2
How can I solve the problem ? I look forward to your reply !