AlphaZero_Gomoku icon indicating copy to clipboard operation
AlphaZero_Gomoku copied to clipboard

用Pytorch训练保存模型,在human_play中加载模型报错

Open bxdxstu opened this issue 4 years ago • 2 comments

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 run() File "E:/project/AlphaZero_Gomoku/human_play.py", line 72, in run encoding='bytes') # To support python3 _pickle.UnpicklingError: A load persistent id instruction was encountered, but no persistent_load function was specified.

bxdxstu avatar Jan 31 '21 11:01 bxdxstu

pytorch使用的这段上面的代码

littleWangyu avatar Aug 31 '21 08:08 littleWangyu

https://github.com/junxiaosong/AlphaZero_Gomoku/issues/97#issuecomment-653712678 给出了解决方法。

wbs2788 avatar Dec 08 '21 16:12 wbs2788