AlphaZero_Gomoku
AlphaZero_Gomoku copied to clipboard
用Pytorch训练保存模型,在human_play中加载模型报错
Traceback (most recent call last): File "E:/project/AlphaZero_Gomoku/human_play.py", line 68, in run policy_param = pickle.load(open(model_file, 'rb')) _pickle.UnpicklingError: A load persistent id instruction was encountered, but no persistent_load function was specified.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:/project/AlphaZero_Gomoku/human_play.py", line 91, in
pytorch使用的这段上面的代码
https://github.com/junxiaosong/AlphaZero_Gomoku/issues/97#issuecomment-653712678 给出了解决方法。