Closed AIMan-Zzx closed 5 years ago
@sunnyForIOS I suggest following the example of loading NFSP for Leduc:
https://github.com/datamllab/rlcard/blob/master/rlcard/models/pretrained_models.py
a nfsp model is trained for 3 players together,or each player train a separate model
Each player has a separate model. Thus, actually, 3 models are saved, and should be loaded accordingly.
for i in range(env.player_num): agent = NFSPAgent(sess,
saver.save(sess, 'models/doudizhu_nfsp/model')
each player use the same sess, and how to save 3 models, if i use saver.save ,only one model will be save
The models have different name scopes. Check the scope argument of NFSP.
you are right ,scope is different . in save stage,use saver.save, one model saved, right? in reload stage, saver restore ,agent will load params by their own name scope, right?
Yes. saver.restore
will restore the parameters of all the scopes in the entire graph.
thanks very much
how to use the pretrained model, such as nfsp agents. i want to play doudizhu with 3 players, all of them load the pretrained model