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

add export model check #5488

Open
wants to merge 9 commits into
base: release/2.3
Choose a base branch
from

Conversation

tink2123
Copy link
Contributor

  • 将脚本拷贝到套件中,启动命令: bash test_export_shell.sh
  • 已支持 PaddleClas、 PaddleOCR、PaddleDetection、PaddleGAN
  • 部分套件可能需要对应修改脚本

1. 根据config生成 check_inference.py 文件,以MobileNetV3为例:

```
bash test_export_shell.sh test_tipc/config/MobileNetV3/MobileNetV3_large_x0_5_train_infer_python.txt
Copy link
Contributor

@zhengya01 zhengya01 Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1、补充执行路径
2、config->configs


2. 正常执行tipc “lite_train_lite_infer” 链条
```
bash test_train_inference_python.sh test_tipc/config/MobileNetV3/MobileNetV3_large_x0_5_train_infer_python.txt "lite_train_lite_infer"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bash test_train_inference_python.sh test_tipc/config/MobileNetV3/MobileNetV3_large_x0_5_train_infer_python.txt "lite_train_lite_infer"
->
bash test_tipc/test_train_inference_python.sh test_tipc/config/mobilenet_v3_small/train_infer_python.txt "lite_train_lite_infer"

@@ -0,0 +1,125 @@
# Linux GPU/CPU PYTHON 动转静精度测试

动转静精度测试的主程序为`test_export_shell.sh`,可以测试模型动转静的功能和inferecn预测结果的正确性。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inferecn -> inference

2. 正常执行tipc “lite_train_lite_infer” 链条
```
bash test_train_inference_python.sh test_tipc/config/MobileNetV3/MobileNetV3_large_x0_5_train_infer_python.txt "lite_train_lite_infer"
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

执行完以上命令后如何看结果

@tink2123 tink2123 changed the base branch from release/2.2 to release/2.3 July 7, 2022 11:42
bash test_export_shell.sh test_tipc/config/MobileNetV3/MobileNetV3_large_x0_5_train_infer_python.txt
```

2. 正常执行tipc “lite_train_lite_infer” 链条
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tipc 基础链条的"lite_train_lite_infer"模式


2. 正常执行tipc “lite_train_lite_infer” 链条
```
bash test_tipc/test_train_inference_python.sh test_tipc/config/MobileNetV3/MobileNetV3_large_x0_5_train_infer_python.txt "lite_train_lite_infer"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config->configs

@CLAassistant
Copy link

CLAassistant commented Mar 1, 2023

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants