-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
[doc] fixing broken links and updating paddle2onnx usage descriptions #12749
Conversation
Mrxuba
commented
Jun 6, 2024
•
edited by GreatV
Loading
edited by GreatV
- docs: 修复了deploy/paddle2onnx/readme_ch中[模型导出说明]文件中文版链接不存在的问题,doc/doc_en/inference_en.md为base翻译中文版模型导出说明
- docs: 添加了对于Paddle2ONNX模型转化中选项--input_shape_dict的解释说明与解决方法
deploy/paddle2onnx/readme_ch.md
Outdated
@@ -88,6 +88,32 @@ paddle2onnx --model_dir ./inference/ch_ppocr_mobile_v2.0_cls_infer \ | |||
另外,以下几个模型暂不支持转换为 ONNX 模型: | |||
NRTR、SAR、RARE、SRN | |||
|
|||
* 注意:[当前版本(v2.7.5)](https://github.com/PaddlePaddle/PaddleOCR/releases/tag/v2.7.5)现已不支持动态shape,即动态选项--input_shape_dict="{'x': [-1, 3, -1, -1]}", |
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.
这里应该用paddle2onnx的版本
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.
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.
原因是因为
https://github.com/PaddlePaddle/Paddle/releases
新版本的paddlepaddle不再兼容paddle.fluid API,但是PaddleUtils仍在进行使用,因此如果使用PaddleUtils进行shape修改需要使用旧版paddlepaddle
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.
或许可以使用onnxsim来实现动态shape
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.
文档里要兼容最新的paddlepaddle
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.
但这些都跟paddleocr的版本无关
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.
是的,paddleocr的版本不需要进行修改
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.
或许可以使用onnxsim来实现动态shape
我会再次进行尝试
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.
这里应该是新版的paddle2onnx不支持修改输入尺寸,而不是paddleocr不支持,这里跟paddleocr无关。
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.
[docs]:使用onnxsim修改input_shape可以兼容paddlepaddle现版本
这里我们的 |
python3.7 改为 python3 |
修改了不恰当的相关描述
修改了中文版模型导出说明inference_ch.md命名为inference.md
修改不恰当表述
修改所有python3.7为python3
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.
LGTM
@Mrxuba Thanks for your contribution! You will receive a beautiful PaddlePaddle gift. Please provide your mailing address by filling out the following questionnaire before October 18th. Looking forward to the future, we will walk further together in the world of open source! |
hi, @Mrxuba
|