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

怎么恢复保存的模型的参数 #15

Closed
XUPT-guoruihan opened this issue Sep 11, 2021 · 2 comments
Closed

怎么恢复保存的模型的参数 #15

XUPT-guoruihan opened this issue Sep 11, 2021 · 2 comments

Comments

@XUPT-guoruihan
Copy link

您好!非常感谢您分享的代码 我注意到您的代码中有save的相关代码
"""save weight"""
if ret['recall'][0] == cur_best_pre_0 and args.save:
torch.save(model.state_dict(), args.out_dir + 'model_' + args.dataset + '.ckpt')
但是我发现下一次训练的时候并没有加载保存的参数,请问您的代码中实现恢复模型的相关代码了吗?

@huangtinglin
Copy link
Owner

感谢您对我们工作的关注!代码中暂时未实现加载模型,未来会考虑添加的。

@XUPT-guoruihan
Copy link
Author

感谢您的回复!祝工作顺利

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

2 participants