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

Update README #1345

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Update README #1345

wants to merge 3 commits into from

Conversation

inisis
Copy link
Contributor

@inisis inisis commented Aug 13, 2024

No description provided.

@@ -71,7 +71,12 @@ paddle2onnx --model_dir saved_inference_model \

## 4.5 优化ONNX

如你对导出的 ONNX 模型有优化的需求,推荐使用 `onnx-simplifier`,也可使用[onnxslim](https://github.com/inisis/OnnxSlim)对模型进行优化
Copy link
Collaborator

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)对模型进行优化
Copy link
Collaborator

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 写后面

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Successfully merging this pull request may close these issues.

3 participants