openai / maddpg

Code for the MADDPG algorithm from the paper "Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments"
https://arxiv.org/pdf/1706.02275.pdf
MIT License
1.66k stars 494 forks source link

Nontype flaw in "train.py", line 182 #28

Open DailinH opened 5 years ago

DailinH commented 5 years ago

If one tries to set "--exp-name" by default, an error may occur in train.py(line 182) indicating that there is a TypeError. This may have resulted from the parse_args function's setting "--exp-name"'s default to None. It might be better to set it to "" as in "--load-dir"

SHYang1210 commented 5 years ago

i ttried what you said,set default to "", but not work,the error: FileNotFoundError: [Errno 2] No such file or directory: './learning_curves/_rewards.pkl'

DailinH commented 5 years ago

the solution to that is to create a learning_curves folder by hand, I guess. mkdir learning_curves will do.

vigilantee-seek commented 3 years ago

The code in train.py says parser.add_argument("--exp-name", type=str, default=None, help="name of the experiment"). Therefore, when you try to set the argument exp-name, remember to assign a string variable like --exp-name "foo".