-
Notifications
You must be signed in to change notification settings - Fork 252
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
训练时用save_persistables保存模型,如何进行serving模型转换? #1098
Comments
Message that will be displayed on users' first issue |
需要使用save_inference_model的 |
也就是说这种方式保存的持久化变量模型没法直接进行serving模型转换,得重新训练?
…---原始邮件---
发件人: "Jiawei ***@***.***>
发送时间: 2021年3月24日(周三) 中午12:20
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [PaddlePaddle/Serving] 训练时用save_persistables保存模型,如何进行serving模型转换? (#1098)
需要使用save_inference_model的
save_persistable会把vars事无巨细的保存下来唯独不保存模型结构。save_inference_model会保存相关的结构并做好裁剪。
具体参见https://github.com/PaddlePaddle/Serving/blob/develop/doc/SAVE_CN.md
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
我觉得可能也不用 可以保存一个壳 然后把这些参数复制过去也可以的 |
不确定你的Paddle版本哈, |
那这样的要就只能重新训练模型,以其他方式进行模型保存,我训练出来的参数文件就只有图中两种。看了很多方案,好像没有直接转换成paddle serving模型的方式。 |
请问我用paddle训练时,是用save_persistables进行全部持久性变量保存,可以用paddle serving进行吗?我看训练好的模型都和用save_inference_model的不一样。
The text was updated successfully, but these errors were encountered: