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
e84b4a32
Unverified
Commit
e84b4a32
authored
Oct 27, 2021
by
MissPenguin
Committed by
GitHub
Oct 27, 2021
Browse files
Merge pull request #4457 from MissPenguin/dygraph
rename PTDN to test_tipc
parents
e53b9dba
1f3b4663
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
18 additions
and
18 deletions
+18
-18
test_tipc/docs/test_train_inference_python.md
test_tipc/docs/test_train_inference_python.md
+15
-15
test_tipc/prepare.sh
test_tipc/prepare.sh
+0
-0
test_tipc/readme.md
test_tipc/readme.md
+3
-3
test_tipc/results/cpp_ppocr_det_mobile_results_fp16.txt
test_tipc/results/cpp_ppocr_det_mobile_results_fp16.txt
+0
-0
test_tipc/results/cpp_ppocr_det_mobile_results_fp32.txt
test_tipc/results/cpp_ppocr_det_mobile_results_fp32.txt
+0
-0
test_tipc/results/python_ppocr_det_mobile_results_fp16.txt
test_tipc/results/python_ppocr_det_mobile_results_fp16.txt
+0
-0
test_tipc/results/python_ppocr_det_mobile_results_fp32.txt
test_tipc/results/python_ppocr_det_mobile_results_fp32.txt
+0
-0
test_tipc/test_inference_cpp.sh
test_tipc/test_inference_cpp.sh
+0
-0
test_tipc/test_lite.sh
test_tipc/test_lite.sh
+0
-0
test_tipc/test_serving.sh
test_tipc/test_serving.sh
+0
-0
test_tipc/test_train_inference_python.sh
test_tipc/test_train_inference_python.sh
+0
-0
No files found.
PTDN
/docs/test_train_inference_python.md
→
test_tipc
/docs/test_train_inference_python.md
View file @
e84b4a32
...
@@ -46,42 +46,42 @@
...
@@ -46,42 +46,42 @@
### 2.2 功能测试
### 2.2 功能测试
先运行
`prepare.sh`
准备数据和模型,然后运行
`test_train_inference_python.sh`
进行测试,最终在
```
PTDN
/output```
目录下生成
`python_infer_*.log`
格式的日志文件。
先运行
`prepare.sh`
准备数据和模型,然后运行
`test_train_inference_python.sh`
进行测试,最终在
```
test_tipc
/output```
目录下生成
`python_infer_*.log`
格式的日志文件。
`test_train_inference_python.sh`
包含5种运行模式,每种模式的运行数据不同,分别用于测试速度和精度,分别是:
`test_train_inference_python.sh`
包含5种运行模式,每种模式的运行数据不同,分别用于测试速度和精度,分别是:
-
模式1:lite_train_infer,使用少量数据训练,用于快速验证训练到预测的走通流程,不验证精度和速度;
-
模式1:lite_train_infer,使用少量数据训练,用于快速验证训练到预测的走通流程,不验证精度和速度;
```
shell
```
shell
bash
PTDN
/prepare.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
'lite_train_infer'
bash
test_tipc
/prepare.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
'lite_train_infer'
bash
PTDN
/test_train_inference_python.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
'lite_train_infer'
bash
test_tipc
/test_train_inference_python.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
'lite_train_infer'
```
```
-
模式2:whole_infer,使用少量数据训练,一定量数据预测,用于验证训练后的模型执行预测,预测速度是否合理;
-
模式2:whole_infer,使用少量数据训练,一定量数据预测,用于验证训练后的模型执行预测,预测速度是否合理;
```
shell
```
shell
bash
PTDN
/prepare.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
'whole_infer'
bash
test_tipc
/prepare.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
'whole_infer'
bash
PTDN
/test_train_inference_python.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
'whole_infer'
bash
test_tipc
/test_train_inference_python.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
'whole_infer'
```
```
-
模式3:infer,不训练,全量数据预测,走通开源模型评估、动转静,检查inference model预测时间和精度;
-
模式3:infer,不训练,全量数据预测,走通开源模型评估、动转静,检查inference model预测时间和精度;
```
shell
```
shell
bash
PTDN
/prepare.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
'infer'
bash
test_tipc
/prepare.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
'infer'
# 用法1:
# 用法1:
bash
PTDN
/test_train_inference_python.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
'infer'
bash
test_tipc
/test_train_inference_python.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
'infer'
# 用法2: 指定GPU卡预测,第三个传入参数为GPU卡号
# 用法2: 指定GPU卡预测,第三个传入参数为GPU卡号
bash
PTDN
/test_train_inference_python.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
'infer'
'1'
bash
test_tipc
/test_train_inference_python.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
'infer'
'1'
```
```
-
模式4:whole_train_infer,CE: 全量数据训练,全量数据预测,验证模型训练精度,预测精度,预测速度;
-
模式4:whole_train_infer,CE: 全量数据训练,全量数据预测,验证模型训练精度,预测精度,预测速度;
```
shell
```
shell
bash
PTDN
/prepare.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
'whole_train_infer'
bash
test_tipc
/prepare.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
'whole_train_infer'
bash
PTDN
/test_train_inference_python.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
'whole_train_infer'
bash
test_tipc
/test_train_inference_python.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
'whole_train_infer'
```
```
-
模式5:klquant_infer,测试离线量化;
-
模式5:klquant_infer,测试离线量化;
```
shell
```
shell
bash
PTDN
/prepare.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
'klquant_infer'
bash
test_tipc
/prepare.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
'klquant_infer'
bash
PTDN
/test_train_inference_python.sh
PTDN
/configs/ppocr_det_mobile_params.txt
'klquant_infer'
bash
test_tipc
/test_train_inference_python.sh
test_tipc
/configs/ppocr_det_mobile_params.txt
'klquant_infer'
```
```
...
@@ -95,12 +95,12 @@ bash PTDN/test_train_inference_python.sh PTDN/configs/ppocr_det_mobile_params.tx
...
@@ -95,12 +95,12 @@ bash PTDN/test_train_inference_python.sh PTDN/configs/ppocr_det_mobile_params.tx
#### 使用方式
#### 使用方式
运行命令:
运行命令:
```
shell
```
shell
python3.7
PTDN
/compare_results.py
--gt_file
=
./
PTDN
/results/python_
*
.txt
--log_file
=
./
PTDN
/output/python_
*
.log
--atol
=
1e-3
--rtol
=
1e-3
python3.7
test_tipc
/compare_results.py
--gt_file
=
./
test_tipc
/results/python_
*
.txt
--log_file
=
./
test_tipc
/output/python_
*
.log
--atol
=
1e-3
--rtol
=
1e-3
```
```
参数介绍:
参数介绍:
-
gt_file: 指向事先保存好的预测结果路径,支持
*.txt 结尾,会自动索引*
.txt格式的文件,文件默认保存在
PTDN
/result/ 文件夹下
-
gt_file: 指向事先保存好的预测结果路径,支持
*.txt 结尾,会自动索引*
.txt格式的文件,文件默认保存在
test_tipc
/result/ 文件夹下
-
log_file: 指向运行
PTDN
/test_train_inference_python.sh 脚本的infer模式保存的预测日志,预测日志中打印的有预测结果,比如:文本框,预测文本,类别等等,同样支持python_infer_
*
.log格式传入
-
log_file: 指向运行
test_tipc
/test_train_inference_python.sh 脚本的infer模式保存的预测日志,预测日志中打印的有预测结果,比如:文本框,预测文本,类别等等,同样支持python_infer_
*
.log格式传入
-
atol: 设置的绝对误差
-
atol: 设置的绝对误差
-
rtol: 设置的相对误差
-
rtol: 设置的相对误差
...
...
PTDN
/prepare.sh
→
test_tipc
/prepare.sh
View file @
e84b4a32
File moved
PTDN
/readme.md
→
test_tipc
/readme.md
View file @
e84b4a32
#
推理部署导航
#
飞桨训推一体认证
## 1. 简介
## 1. 简介
飞桨除了基本的模型训练和预测,还提供了支持多端多平台的高性能推理部署工具。本文档提供了PaddleOCR中所有模型的
推理部署导航PTDN(Paddle Train Deploy Navigation)
,方便用户查阅每种模型的推理部署打通情况,并可以进行一键测试。
飞桨除了基本的模型训练和预测,还提供了支持多端多平台的高性能推理部署工具。本文档提供了PaddleOCR中所有模型的
飞桨训推一体认证 (Training and Inference Pipeline Certification(TIPC)) 信息和测试工具
,方便用户查阅每种模型的
训练
推理部署打通情况,并可以进行一键测试。
<div
align=
"center"
>
<div
align=
"center"
>
<img
src=
"docs/guide.png"
width=
"1000"
>
<img
src=
"docs/guide.png"
width=
"1000"
>
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
### 目录介绍
### 目录介绍
```
shell
```
shell
PTDN
/
test_tipc
/
├── configs/
# 配置文件目录
├── configs/
# 配置文件目录
├── det_mv3_db.yml
# 测试mobile版ppocr检测模型训练的yml文件
├── det_mv3_db.yml
# 测试mobile版ppocr检测模型训练的yml文件
├── det_r50_vd_db.yml
# 测试server版ppocr检测模型训练的yml文件
├── det_r50_vd_db.yml
# 测试server版ppocr检测模型训练的yml文件
...
...
PTDN
/results/cpp_ppocr_det_mobile_results_fp16.txt
→
test_tipc
/results/cpp_ppocr_det_mobile_results_fp16.txt
View file @
e84b4a32
File moved
PTDN
/results/cpp_ppocr_det_mobile_results_fp32.txt
→
test_tipc
/results/cpp_ppocr_det_mobile_results_fp32.txt
View file @
e84b4a32
File moved
PTDN
/results/python_ppocr_det_mobile_results_fp16.txt
→
test_tipc
/results/python_ppocr_det_mobile_results_fp16.txt
View file @
e84b4a32
File moved
PTDN
/results/python_ppocr_det_mobile_results_fp32.txt
→
test_tipc
/results/python_ppocr_det_mobile_results_fp32.txt
View file @
e84b4a32
File moved
PTDN
/test_inference_cpp.sh
→
test_tipc
/test_inference_cpp.sh
View file @
e84b4a32
File moved
PTDN
/test_lite.sh
→
test_tipc
/test_lite.sh
View file @
e84b4a32
File moved
PTDN
/test_serving.sh
→
test_tipc
/test_serving.sh
View file @
e84b4a32
File moved
PTDN
/test_train_inference_python.sh
→
test_tipc
/test_train_inference_python.sh
View file @
e84b4a32
File moved
Prev
1
2
Next
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