Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bxdxstu opened this issue Jan 31, 2021 · 2 comments
Open

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

bxdxstu opened this issue Jan 31, 2021 · 2 comments

Comments

@bxdxstu
Copy link

bxdxstu commented Jan 31, 2021

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.

@littleWangyu
Copy link

pytorch使用的这段上面的代码

@wbs2788
Copy link

wbs2788 commented Dec 8, 2021

#97 (comment)
给出了解决方法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants