-
Notifications
You must be signed in to change notification settings - Fork 64
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
Discrete action #3
Comments
I also met this problem, have you solved it? |
No, I used other repos. |
You should add multiagent and change make_env.py about discrete |
Got it, Thanks for your answering~ |
I remove the argument 'discrete',and then change the multiagent-particle-envs-master\multiagent\environment\self.discrete_action_input = True, the code run successfully |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(MARL) root@5e4fd369caa6:~/code/MARL-code-pytorch/4.MADDPG_MATD3_MPE# python3 MADDPG_MATD3_main.py --algorithm MADDPG
Traceback (most recent call last):
File "MADDPG_MATD3_main.py", line 142, in
runner = Runner(args, env_name=env_names[env_index], number=1, seed=0)
File "MADDPG_MATD3_main.py", line 19, in init
self.env = make_env(env_name, discrete=False) # Continuous action space
TypeError: make_env() got an unexpected keyword argument 'discrete'
Then, I try to remove this argument'discrete' ------self.env = make_env(env_name). There appear this problem:
(MARL) root@5e4fd369caa6:~/code/MARL-code-pytorch/4.MADDPG_MATD3_MPE# python3 MADDPG_MATD3_main.py --algorithm MADDPG
Traceback (most recent call last):
File "MADDPG_MATD3_main.py", line 142, in
runner = Runner(args, env_name=env_names[env_index], number=1, seed=0)
File "MADDPG_MATD3_main.py", line 23, in init
self.args.action_dim_n = [self.env.action_space[i].shape[0] for i in range(self.args.N)] # actions dimensions of N agents
File "MADDPG_MATD3_main.py", line 23, in
self.args.action_dim_n = [self.env.action_space[i].shape[0] for i in range(self.args.N)] # actions dimensions of N agents
IndexError: tuple index out of range
Could anyone help me?
The text was updated successfully, but these errors were encountered: