Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
1d04fa26
Commit
1d04fa26
authored
Oct 19, 2021
by
MissPenguin
Browse files
rename test_*sh files
parent
05a9bacd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
30 deletions
+30
-30
PTDN/docs/test_inference_cpp.md
PTDN/docs/test_inference_cpp.md
+4
-4
PTDN/docs/test_train_inference_python.md
PTDN/docs/test_train_inference_python.md
+13
-13
PTDN/readme.md
PTDN/readme.md
+13
-13
PTDN/test_inference_cpp.sh
PTDN/test_inference_cpp.sh
+0
-0
PTDN/test_train_inference_python.sh
PTDN/test_train_inference_python.sh
+0
-0
No files found.
PTDN/docs/test_cpp.md
→
PTDN/docs/test_
inference_
cpp.md
View file @
1d04fa26
# C++预测功能测试
C++预测功能测试的主程序为
`test_cpp.sh`
,可以测试基于C++预测库的模型推理功能。
C++预测功能测试的主程序为
`test_
inference_
cpp.sh`
,可以测试基于C++预测库的模型推理功能。
## 1. 测试结论汇总
...
...
@@ -15,15 +15,15 @@ C++预测功能测试的主程序为`test_cpp.sh`,可以测试基于C++预测
## 2. 测试流程
### 2.1 功能测试
先运行
`prepare.sh`
准备数据和模型,然后运行
`test_cpp.sh`
进行测试,最终在
```tests/output```
目录下生成
`cpp_infer_*.log`
后缀的日志文件。
先运行
`prepare.sh`
准备数据和模型,然后运行
`test_
inference_
cpp.sh`
进行测试,最终在
```tests/output```
目录下生成
`cpp_infer_*.log`
后缀的日志文件。
```
shell
bash tests/prepare.sh ./tests/configs/ppocr_det_mobile_params.txt
"cpp_infer"
# 用法1:
bash tests/test_cpp.sh ./tests/configs/ppocr_det_mobile_params.txt
bash tests/test_
inference_
cpp.sh ./tests/configs/ppocr_det_mobile_params.txt
# 用法2: 指定GPU卡预测,第三个传入参数为GPU卡号
bash tests/test_cpp.sh ./tests/configs/ppocr_det_mobile_params.txt
'1'
bash tests/test_
inference_
cpp.sh ./tests/configs/ppocr_det_mobile_params.txt
'1'
```
...
...
PTDN/docs/test_python.md
→
PTDN/docs/test_
train_inference_
python.md
View file @
1d04fa26
#
Python
功能测试
#
基础训练预测
功能测试
Python
功能测试的主程序为
`test_python.sh`
,可以测试基于Python的模型训练、评估、推理等基本功能,包括裁剪、量化、蒸馏。
基础训练预测
功能测试的主程序为
`test_
train_inference_
python.sh`
,可以测试基于Python的模型训练、评估、推理等基本功能,包括裁剪、量化、蒸馏。
## 1. 测试结论汇总
...
...
@@ -45,42 +45,42 @@ Python功能测试的主程序为`test_python.sh`,可以测试基于Python的
### 2.2 功能测试
先运行
`prepare.sh`
准备数据和模型,然后运行
`test_python.sh`
进行测试,最终在
```tests/output```
目录下生成
`python_infer_*.log`
格式的日志文件。
先运行
`prepare.sh`
准备数据和模型,然后运行
`test_
train_inference_
python.sh`
进行测试,最终在
```tests/output```
目录下生成
`python_infer_*.log`
格式的日志文件。
test_python.sh包含
四
种运行模式,每种模式的运行数据不同,分别用于测试速度和精度,分别是:
`
test_
train_inference_
python.sh
`
包含
5
种运行模式,每种模式的运行数据不同,分别用于测试速度和精度,分别是:
-
模式1:lite_train_infer,使用少量数据训练,用于快速验证训练到预测的走通流程,不验证精度和速度;
```
shell
bash tests/prepare.sh ./tests/configs/ppocr_det_mobile_params.txt
'lite_train_infer'
bash tests/test_python.sh ./tests/configs/ppocr_det_mobile_params.txt
'lite_train_infer'
bash tests/test_
train_inference_
python.sh ./tests/configs/ppocr_det_mobile_params.txt
'lite_train_infer'
```
-
模式2:whole_infer,使用少量数据训练,一定量数据预测,用于验证训练后的模型执行预测,预测速度是否合理;
```
shell
bash tests/prepare.sh ./tests/configs/ppocr_det_mobile_params.txt
'whole_infer'
bash tests/test_python.sh ./tests/configs/ppocr_det_mobile_params.txt
'whole_infer'
bash tests/test_
train_inference_
python.sh ./tests/configs/ppocr_det_mobile_params.txt
'whole_infer'
```
-
模式3:infer
不训练,全量数据预测,走通开源模型评估、动转静,检查inference model预测时间和精度;
-
模式3:infer
,
不训练,全量数据预测,走通开源模型评估、动转静,检查inference model预测时间和精度;
```
shell
bash tests/prepare.sh ./tests/configs/ppocr_det_mobile_params.txt
'infer'
# 用法1:
bash tests/test_python.sh ./tests/configs/ppocr_det_mobile_params.txt
'infer'
bash tests/test_
train_inference_
python.sh ./tests/configs/ppocr_det_mobile_params.txt
'infer'
# 用法2: 指定GPU卡预测,第三个传入参数为GPU卡号
bash tests/test_python.sh ./tests/configs/ppocr_det_mobile_params.txt
'infer'
'1'
bash tests/test_
train_inference_
python.sh ./tests/configs/ppocr_det_mobile_params.txt
'infer'
'1'
```
-
模式4:whole_train_infer
,
CE: 全量数据训练,全量数据预测,验证模型训练精度,预测精度,预测速度;
-
模式4:whole_train_infer
,
CE: 全量数据训练,全量数据预测,验证模型训练精度,预测精度,预测速度;
```
shell
bash tests/prepare.sh ./tests/configs/ppocr_det_mobile_params.txt
'whole_train_infer'
bash tests/test.sh ./tests/configs/ppocr_det_mobile_params.txt
'whole_train_infer'
bash tests/test
_train_inference_python
.sh ./tests/configs/ppocr_det_mobile_params.txt
'whole_train_infer'
```
-
模式5:klquant_infer
,
测试离线量化;
-
模式5:klquant_infer
,
测试离线量化;
```
shell
bash tests/prepare.sh ./tests/configs/ppocr_det_mobile_params.txt
'klquant_infer'
bash tests/test_python.sh tests/configs/ppocr_det_mobile_params.txt
'klquant_infer'
bash tests/test_
train_inference_
python.sh tests/configs/ppocr_det_mobile_params.txt
'klquant_infer'
```
...
...
PTDN/readme.md
View file @
1d04fa26
...
...
@@ -72,13 +72,13 @@ tests/
├── cpp_ppocr_det_mobile_results_fp32.txt
# 预存的mobile版ppocr检测模型c++预测的fp32精度的结果
├── cpp_ppocr_det_mobile_results_fp16.txt
# 预存的mobile版ppocr检测模型c++预测的fp16精度的结果
├── ...
├── prepare.sh
# 完成test_*.sh运行所需要的数据和模型下载
├── test_python.sh
# 测试python训练预测的主程序
├── test_cpp.sh
# 测试c++预测的主程序
├── test_serving.sh
# 测试serving部署预测的主程序
├── test_lite.sh
# 测试lite部署预测的主程序
├── compare_results.py
# 用于对比log中的预测结果与results中的预存结果精度误差是否在限定范围内
└── readme.md
# 使用文档
├── prepare.sh
# 完成test_*.sh运行所需要的数据和模型下载
├── test_
train_inference_
python.sh
# 测试python训练预测的主程序
├── test_
inference_
cpp.sh
# 测试c++预测的主程序
├── test_serving.sh
# 测试serving部署预测的主程序
├── test_lite.sh
# 测试lite部署预测的主程序
├── compare_results.py
# 用于对比log中的预测结果与results中的预存结果精度误差是否在限定范围内
└── readme.md
# 使用文档
```
### 测试流程
...
...
@@ -92,13 +92,13 @@ tests/
3.
用
`compare_results.py`
对比log中的预测结果和预存在results目录下的结果,判断预测精度是否符合预期(在误差范围内)。
其中,有4个测试主程序,功能如下:
-
`test_python.sh`
:测试基于Python的模型训练、评估、推理等基本功能,包括裁剪、量化、蒸馏。
-
`test_cpp.sh`
:测试基于C++的模型推理。
-
`test_
train_inference_
python.sh`
:测试基于Python的模型训练、评估、推理等基本功能,包括裁剪、量化、蒸馏。
-
`test_
inference_
cpp.sh`
:测试基于C++的模型推理。
-
`test_serving.sh`
:测试基于Paddle Serving的服务化部署功能。
-
`test_lite.sh`
:测试基于Paddle-Lite的端侧预测部署功能。
各功能测试中涉及GPU/CPU、mkldnn、Tensorrt等多种参数配置,点击相应链接了解更多细节和使用教程:
[
test_python使用
](
docs/test_python.md
)
[
test_cpp使用
](
docs/test_cpp.md
)
[
test_serving使用
](
docs/test_serving.md
)
[
test_lite使用
](
docs/test_lite.md
)
[
test_
train_inference_
python
使用
](
docs/test_
train_inference_
python.md
)
[
test_
inference_
cpp
使用
](
docs/test_
inference_
cpp.md
)
[
test_serving
使用
](
docs/test_serving.md
)
[
test_lite
使用
](
docs/test_lite.md
)
PTDN/test_cpp.sh
→
PTDN/test_
inference_
cpp.sh
View file @
1d04fa26
File moved
PTDN/test_python.sh
→
PTDN/test_
train_inference_
python.sh
View file @
1d04fa26
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment