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

AttributeError: 'Namespace' object has no attribute 'n_agents' #51

Open
xiaowangzi777 opened this issue Aug 2, 2024 · 1 comment
Open

Comments

@xiaowangzi777
Copy link

运行MAPPO_MPE示例代码时,simple_spread_v3.yaml文件中没有规定agent的数量

@wenzhangliu
Copy link
Collaborator

Hi, setting the number of agents in MPE environment through .yaml files is not supported currently.

If you want to set different number of agents or customize your own scenarios in MPE, I suggest you following their official steps at https://pettingzoo.farama.org/tutorials/custom_environment/, and wrapper your customized environments by following the XuanCe's document at https://xuance.readthedocs.io/en/latest/documents/usage/new_marl_envs.html.

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

2 participants