-
Notifications
You must be signed in to change notification settings - Fork 166
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
Update README #1345
base: develop
Are you sure you want to change the base?
Update README #1345
Conversation
@@ -71,7 +71,12 @@ paddle2onnx --model_dir saved_inference_model \ | |||
|
|||
## 4.5 优化ONNX | |||
|
|||
如你对导出的 ONNX 模型有优化的需求,推荐使用 `onnx-simplifier`,也可使用[onnxslim](https://github.com/inisis/OnnxSlim)对模型进行优化 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的 onnx-simplifier
也是第三方的优化工具,不是Paddle的官方套件,也需要简单介绍,同时也帮忙补充一下用法吧。
pip3 install -U pip && pip3 install onnxsim
onnxsim input_onnx_model output_onnx_model
@@ -71,7 +71,12 @@ paddle2onnx --model_dir saved_inference_model \ | |||
|
|||
## 4.5 优化ONNX | |||
|
|||
如你对导出的 ONNX 模型有优化的需求,推荐使用 `onnx-simplifier`,也可使用[onnxslim](https://github.com/inisis/OnnxSlim)对模型进行优化 | |||
如你对导出的 ONNX 模型有优化的需求,推荐使用 `onnx-simplifier`,也可使用第三方优化工具[onnxslim](https://github.com/inisis/OnnxSlim)对模型进行优化 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议把 onnx-simplifier 和 OnnxSlim 这两个项目分开两段来写,你可以把 onnxslim 写前面,把 onnx-simplifier 写后面
|
No description provided.