-
Notifications
You must be signed in to change notification settings - Fork 2.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
add export model check #5488
base: release/2.3
Are you sure you want to change the base?
add export model check #5488
Conversation
tink2123
commented
Mar 17, 2022
- 将脚本拷贝到套件中,启动命令: 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 |
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.
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" |
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.
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预测结果的正确性。 |
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.
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" | ||
``` |
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.
执行完以上命令后如何看结果
bash test_export_shell.sh test_tipc/config/MobileNetV3/MobileNetV3_large_x0_5_train_infer_python.txt | ||
``` | ||
|
||
2. 正常执行tipc “lite_train_lite_infer” 链条 |
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.
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" |
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.
config->configs
|