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

请问想换文档内列出的其他模型怎么换? #62

Closed
SweeneyLi opened this issue May 19, 2020 · 2 comments
Closed

请问想换文档内列出的其他模型怎么换? #62

SweeneyLi opened this issue May 19, 2020 · 2 comments

Comments

@SweeneyLi
Copy link

inference里的是model和params
其他模型下载下来是best_accuracy.pdmodel这种格式,改名报错
Error: Getting 'tensor_desc' is not supported by the type of var double_buffer_0. at (D:\1.7.2\paddle\paddle\fluid\framework\var_desc.cc:209)

@MissPenguin
Copy link
Collaborator

您好,best_accuracy.*格式的模型为persistable 模型,可以加载后重新训练,model+params格式的模型为inference 模型,删除了无关参数,用于预测部署。前者可以使用tools/export_model.py转换为后者,具体操作可参考文档:https://github.com/PaddlePaddle/PaddleOCR/blob/develop/doc/inference.md

@SweeneyLi
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

3 participants