Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
38e78b0c
P
PaddleClas
项目概览
PaddlePaddle
/
PaddleClas
大约 2 年 前同步成功
通知
118
Star
4999
Fork
1114
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
6
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleClas
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
6
合并请求
6
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
38e78b0c
编写于
9月 01, 2022
作者:
H
HydrogenSulfate
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add paddle2onnx_infer chain
上级
a8278e84
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
18 addition
and
3 deletion
+18
-3
test_tipc/configs/GeneralRecognitionV2/GeneralRecognitionV2_PPLCNetV2_base_linux_gpu_normal_normal_paddle2onnx_python_linux_cpu.txt
..._linux_gpu_normal_normal_paddle2onnx_python_linux_cpu.txt
+16
-0
test_tipc/prepare.sh
test_tipc/prepare.sh
+2
-3
未找到文件。
test_tipc/configs/GeneralRecognitionV2/GeneralRecognitionV2_PPLCNetV2_base_linux_gpu_normal_normal_paddle2onnx_python_linux_cpu.txt
0 → 100644
浏览文件 @
38e78b0c
===========================paddle2onnx_params===========================
model_name:GeneralRecognitionV2_PPLCNetV2_base
python:python3.7
2onnx: paddle2onnx
--model_dir:./deploy/models/general_PPLCNetV2_base_pretrained_v1.0_infer/
--model_filename:inference.pdmodel
--params_filename:inference.pdiparams
--save_file:./deploy/models/general_PPLCNetV2_base_pretrained_v1.0_infer/inference.onnx
--opset_version:10
--enable_onnx_checker:True
inference_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/PP-ShiTuV2/general_PPLCNetV2_base_pretrained_v1.0_infer.tar
inference:./python/predict_rec.py
Global.use_onnx:True
Global.rec_inference_model_dir:./models/general_PPLCNetV2_base_pretrained_v1.0_infer
Global.use_gpu:False
-c:configs/inference_rec.yaml
\ No newline at end of file
test_tipc/prepare.sh
浏览文件 @
38e78b0c
...
@@ -321,6 +321,7 @@ if [[ ${MODE} = "paddle2onnx_infer" ]]; then
...
@@ -321,6 +321,7 @@ if [[ ${MODE} = "paddle2onnx_infer" ]]; then
inference_model_url
=
$(
func_parser_value
"
${
lines
[10]
}
"
)
inference_model_url
=
$(
func_parser_value
"
${
lines
[10]
}
"
)
tar_name
=
${
inference_model_url
##*/
}
tar_name
=
${
inference_model_url
##*/
}
${
python_name
}
-m
pip
install
onnx
${
python_name
}
-m
pip
install
paddle2onnx
${
python_name
}
-m
pip
install
paddle2onnx
${
python_name
}
-m
pip
install
onnxruntime
${
python_name
}
-m
pip
install
onnxruntime
if
[[
${
model_name
}
=
~
"GeneralRecognition"
]]
;
then
if
[[
${
model_name
}
=
~
"GeneralRecognition"
]]
;
then
...
@@ -337,14 +338,12 @@ if [[ ${MODE} = "paddle2onnx_infer" ]]; then
...
@@ -337,14 +338,12 @@ if [[ ${MODE} = "paddle2onnx_infer" ]]; then
rm
-rf
val_list.txt
rm
-rf
val_list.txt
ln
-s
demo_test.txt val_list.txt
ln
-s
demo_test.txt val_list.txt
cd
../../
cd
../../
eval
"wget -nc
$model_url_value
--no-check-certificate"
mv
general_PPLCNet_x2_5_pretrained_v1.0.pdparams GeneralRecognition_PPLCNet_x2_5_pretrained.pdparams
fi
fi
cd
deploy
cd
deploy
mkdir
models
mkdir
models
cd
models
cd
models
wget
-nc
${
inference_model_url
}
wget
-nc
${
inference_model_url
}
tar
xf
${
tar_name
}
eval
"tar -xf
${
tar_name
}
"
cd
../../
cd
../../
fi
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录