starry-sky6688 / MARL-Algorithms

Implementations of IQL, QMIX, VDN, COMA, QTRAN, MAVEN, CommNet, DyMA-CL, and G2ANet on SMAC, the decentralised micromanagement scenario of StarCraft II
1.46k stars 283 forks source link

为何没有保存model? #87

Closed lbqdcxy closed 2 years ago

lbqdcxy commented 2 years ago

一开始运行iql这个算法没有保存model,后来试了下别的算法,删掉旧的model,也没有保存,请问什么原因

starry-sky6688 commented 2 years ago

https://github.com/starry-sky6688/StarCraft/blob/2c07045f294ad4eeb5ab8a8d25cf43d0efea4cb3/agent/agent.py#L129

看一下这里,每训练args.save_cycle次才会保存一次模型

lbqdcxy commented 2 years ago

抱歉,还是没太明白,在arguments.py里,args.save_cycle=5000,train_step=1,那么一个episode能训练多少次呢?我跑完8个完整的episodes也没有保存模型,还望您解答。

starry-sky6688 commented 2 years ago

args.save_cycle=5000是指训练5000次,也就是跑完5000个episode之后才会保存,

lbqdcxy commented 2 years ago

好的好的,明白了,感谢