agi-brain / xuance

XuanCe: A Comprehensive and Unified Deep Reinforcement Learning Library
https://xuance.readthedocs.io/
MIT License
578 stars 96 forks source link

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

Open xiaowangzi777 opened 1 month ago

xiaowangzi777 commented 1 month ago

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

wenzhangliu commented 1 month ago

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.