You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use the mappo algorithm in the custom multi-agent environment.
My observation consists of two parts: agent_state and global_state. Specifically:
The dimensions of agent_state are given by H1 × W1 × C1.
The dimensions of global_state are given by H2 × W2 × C2.
I noticed that the parameters of agent_obs_shape and global_obs_shape in MAVAC can be either integers or sequences:
Traceback (most recent call last):
File "/data/projects/20240708/DI-engine/custom_procthor_env_hierarchy_top_view_multi_agent/procthor_env_ppo_subprocess_hierarchy.py", line 215, in <module>
main()
File "/data/projects/20240708/DI-engine/custom_procthor_env_hierarchy_top_view_multi_agent/procthor_env_ppo_subprocess_hierarchy.py", line 202, in main
model = MAVAC(**cfg.policy.model)
File "/data/projects/20240708/DI-engine/ding/model/template/mavac.py", line 84, in __init__
nn.Linear(global_obs_shape, critic_head_hidden_size), activation,
File "/home/wj/anaconda3/envs/di/lib/python3.9/site-packages/torch/nn/modules/linear.py", line 96, in __init__
self.weight = Parameter(torch.empty((out_features, in_features), **factory_kwargs))
TypeError: empty(): argument 'size' must be tuple of SymInts, but found element of type tuple at pos 2
Dear Author,
I want to use the mappo algorithm in the custom multi-agent environment.
My observation consists of two parts: agent_state and global_state. Specifically:
The dimensions of agent_state are given by H1 × W1 × C1.
The dimensions of global_state are given by H2 × W2 × C2.
I noticed that the parameters of agent_obs_shape and global_obs_shape in MAVAC can be either integers or sequences:
So, I set the observation shape in the config file:
However, the error:
occurred in:
when I use the observation shape mentioned above.
How can I utilize custom networks, or is there an alternative method for handling sequence-type inputs other than flattening the array to 1D?
Thank you for your assistance!
Best regards,
Juan
The text was updated successfully, but these errors were encountered: