Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use 'nf.yaml' meets some problems #16

Open
Lewisvan opened this issue Apr 25, 2024 · 0 comments
Open

use 'nf.yaml' meets some problems #16

Lewisvan opened this issue Apr 25, 2024 · 0 comments

Comments

@Lewisvan
Copy link

when i want to use 'nf.yaml' to create scenario,i have some problems
Traceback (most recent call last):
File "/home/cai/SafeBench/scripts/run.py", line 78, in
runner.run()
File "/home/cai/SafeBench/safebench/carla_runner.py", line 346, in run
self.train(data_loader, start_episode)
File "/home/cai/SafeBench/safebench/carla_runner.py", line 191, in train
scenario_init_action, additional_dict = self.scenario_policy.get_init_action(static_obs)
File "/home/cai/SafeBench/safebench/scenario/scenario_policy/normalizing_flow_policy.py", line 301, in get_init_action
action = self.model.inverse(mean, condition)
File "/home/cai/SafeBench/safebench/scenario/scenario_policy/normalizing_flow_policy.py", line 111, in inverse
z_a_c = torch.cat([z_a, c], dim=1)
RuntimeError: Tensors must have same number of dimensions: got 2 and 3

parser.add_argument('--mode', '-m', type=str, default='train_scenario', choices=['train_agent', 'train_scenario', 'eval'])
parser.add_argument('--agent_cfg', nargs='', type=str, default=['basic.yaml'])
parser.add_argument('--scenario_cfg', nargs='
', type=str, default=['nf.yaml'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant