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
1f3b4663
Commit
1f3b4663
authored
Oct 27, 2021
by
MissPenguin
Browse files
rename PTDN to test_tipc
parent
e53b9dba
Changes
31
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
12 additions
and
12 deletions
+12
-12
test_tipc/common_func.sh
test_tipc/common_func.sh
+0
-0
test_tipc/compare_results.py
test_tipc/compare_results.py
+0
-0
test_tipc/configs/det_mv3_db.yml
test_tipc/configs/det_mv3_db.yml
+0
-0
test_tipc/configs/det_r50_vd_db.yml
test_tipc/configs/det_r50_vd_db.yml
+0
-0
test_tipc/configs/ppocr_det_mobile_params.txt
test_tipc/configs/ppocr_det_mobile_params.txt
+0
-0
test_tipc/configs/ppocr_det_server_params.txt
test_tipc/configs/ppocr_det_server_params.txt
+0
-0
test_tipc/configs/ppocr_rec_mobile_params.txt
test_tipc/configs/ppocr_rec_mobile_params.txt
+0
-0
test_tipc/configs/ppocr_rec_server_params.txt
test_tipc/configs/ppocr_rec_server_params.txt
+0
-0
test_tipc/configs/ppocr_sys_mobile_params.txt
test_tipc/configs/ppocr_sys_mobile_params.txt
+0
-0
test_tipc/configs/ppocr_sys_server_params.txt
test_tipc/configs/ppocr_sys_server_params.txt
+0
-0
test_tipc/configs/rec_icdar15_r34_train.yml
test_tipc/configs/rec_icdar15_r34_train.yml
+0
-0
test_tipc/docs/compare_cpp_right.png
test_tipc/docs/compare_cpp_right.png
+0
-0
test_tipc/docs/compare_cpp_wrong.png
test_tipc/docs/compare_cpp_wrong.png
+0
-0
test_tipc/docs/compare_right.png
test_tipc/docs/compare_right.png
+0
-0
test_tipc/docs/compare_wrong.png
test_tipc/docs/compare_wrong.png
+0
-0
test_tipc/docs/guide.png
test_tipc/docs/guide.png
+0
-0
test_tipc/docs/install.md
test_tipc/docs/install.md
+0
-0
test_tipc/docs/test.png
test_tipc/docs/test.png
+0
-0
test_tipc/docs/test_inference_cpp.md
test_tipc/docs/test_inference_cpp.md
+7
-7
test_tipc/docs/test_serving.md
test_tipc/docs/test_serving.md
+5
-5
No files found.
PTDN
/common_func.sh
→
test_tipc
/common_func.sh
View file @
1f3b4663
File moved
PTDN
/compare_results.py
→
test_tipc
/compare_results.py
View file @
1f3b4663
File moved
PTDN
/configs/det_mv3_db.yml
→
test_tipc
/configs/det_mv3_db.yml
View file @
1f3b4663
File moved
PTDN
/configs/det_r50_vd_db.yml
→
test_tipc
/configs/det_r50_vd_db.yml
View file @
1f3b4663
File moved
PTDN
/configs/ppocr_det_mobile_params.txt
→
test_tipc
/configs/ppocr_det_mobile_params.txt
View file @
1f3b4663
File moved
PTDN
/configs/ppocr_det_server_params.txt
→
test_tipc
/configs/ppocr_det_server_params.txt
View file @
1f3b4663
File moved
PTDN
/configs/ppocr_rec_mobile_params.txt
→
test_tipc
/configs/ppocr_rec_mobile_params.txt
View file @
1f3b4663
File moved
PTDN
/configs/ppocr_rec_server_params.txt
→
test_tipc
/configs/ppocr_rec_server_params.txt
View file @
1f3b4663
File moved
PTDN
/configs/ppocr_sys_mobile_params.txt
→
test_tipc
/configs/ppocr_sys_mobile_params.txt
View file @
1f3b4663
File moved
PTDN
/configs/ppocr_sys_server_params.txt
→
test_tipc
/configs/ppocr_sys_server_params.txt
View file @
1f3b4663
File moved
PTDN
/configs/rec_icdar15_r34_train.yml
→
test_tipc
/configs/rec_icdar15_r34_train.yml
View file @
1f3b4663
File moved
PTDN
/docs/compare_cpp_right.png
→
test_tipc
/docs/compare_cpp_right.png
View file @
1f3b4663
File moved
PTDN
/docs/compare_cpp_wrong.png
→
test_tipc
/docs/compare_cpp_wrong.png
View file @
1f3b4663
File moved
PTDN
/docs/compare_right.png
→
test_tipc
/docs/compare_right.png
View file @
1f3b4663
File moved
PTDN
/docs/compare_wrong.png
→
test_tipc
/docs/compare_wrong.png
View file @
1f3b4663
File moved
PTDN
/docs/guide.png
→
test_tipc
/docs/guide.png
View file @
1f3b4663
File moved
PTDN
/docs/install.md
→
test_tipc
/docs/install.md
View file @
1f3b4663
File moved
PTDN
/docs/test.png
→
test_tipc
/docs/test.png
View file @
1f3b4663
File moved
PTDN
/docs/test_inference_cpp.md
→
test_tipc
/docs/test_inference_cpp.md
View file @
1f3b4663
...
@@ -15,15 +15,15 @@ C++预测功能测试的主程序为`test_inference_cpp.sh`,可以测试基于
...
@@ -15,15 +15,15 @@ C++预测功能测试的主程序为`test_inference_cpp.sh`,可以测试基于
## 2. 测试流程
## 2. 测试流程
### 2.1 功能测试
### 2.1 功能测试
先运行
`prepare.sh`
准备数据和模型,然后运行
`test_inference_cpp.sh`
进行测试,最终在
```
PTDN
/output```
目录下生成
`cpp_infer_*.log`
后缀的日志文件。
先运行
`prepare.sh`
准备数据和模型,然后运行
`test_inference_cpp.sh`
进行测试,最终在
```
test_tipc
/output```
目录下生成
`cpp_infer_*.log`
后缀的日志文件。
```
shell
```
shell
bash
PTDN
/prepare.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
"cpp_infer"
bash
test_tipc
/prepare.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
"cpp_infer"
# 用法1:
# 用法1:
bash
PTDN
/test_inference_cpp.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
bash
test_tipc
/test_inference_cpp.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
# 用法2: 指定GPU卡预测,第三个传入参数为GPU卡号
# 用法2: 指定GPU卡预测,第三个传入参数为GPU卡号
bash
PTDN
/test_inference_cpp.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
'1'
bash
test_tipc
/test_inference_cpp.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
'1'
```
```
...
@@ -37,12 +37,12 @@ bash PTDN/test_inference_cpp.sh ./PTDN/configs/ppocr_det_mobile_params.txt '1'
...
@@ -37,12 +37,12 @@ bash PTDN/test_inference_cpp.sh ./PTDN/configs/ppocr_det_mobile_params.txt '1'
#### 使用方式
#### 使用方式
运行命令:
运行命令:
```
shell
```
shell
python3.7
PTDN
/compare_results.py
--gt_file
=
./
PTDN
/results/cpp_
*
.txt
--log_file
=
./
PTDN
/output/cpp_
*
.log
--atol
=
1e-3
--rtol
=
1e-3
python3.7
test_tipc
/compare_results.py
--gt_file
=
./
test_tipc
/results/cpp_
*
.txt
--log_file
=
./
test_tipc
/output/cpp_
*
.log
--atol
=
1e-3
--rtol
=
1e-3
```
```
参数介绍:
参数介绍:
-
gt_file: 指向事先保存好的预测结果路径,支持
*.txt 结尾,会自动索引*
.txt格式的文件,文件默认保存在
PTDN
/result/ 文件夹下
-
gt_file: 指向事先保存好的预测结果路径,支持
*.txt 结尾,会自动索引*
.txt格式的文件,文件默认保存在
test_tipc
/result/ 文件夹下
-
log_file: 指向运行
PTDN
/test_inference_cpp.sh 脚本的infer模式保存的预测日志,预测日志中打印的有预测结果,比如:文本框,预测文本,类别等等,同样支持cpp_infer_
*
.log格式传入
-
log_file: 指向运行
test_tipc
/test_inference_cpp.sh 脚本的infer模式保存的预测日志,预测日志中打印的有预测结果,比如:文本框,预测文本,类别等等,同样支持cpp_infer_
*
.log格式传入
-
atol: 设置的绝对误差
-
atol: 设置的绝对误差
-
rtol: 设置的相对误差
-
rtol: 设置的相对误差
...
...
PTDN
/docs/test_serving.md
→
test_tipc
/docs/test_serving.md
View file @
1f3b4663
...
@@ -15,18 +15,18 @@ PaddleServing预测功能测试的主程序为`test_serving.sh`,可以测试
...
@@ -15,18 +15,18 @@ PaddleServing预测功能测试的主程序为`test_serving.sh`,可以测试
## 2. 测试流程
## 2. 测试流程
### 2.1 功能测试
### 2.1 功能测试
先运行
`prepare.sh`
准备数据和模型,然后运行
`test_serving.sh`
进行测试,最终在
```
PTDN
/output```
目录下生成
`serving_infer_*.log`
后缀的日志文件。
先运行
`prepare.sh`
准备数据和模型,然后运行
`test_serving.sh`
进行测试,最终在
```
test_tipc
/output```
目录下生成
`serving_infer_*.log`
后缀的日志文件。
```
shell
```
shell
bash
PTDN
/prepare.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
"serving_infer"
bash
test_tipc
/prepare.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
"serving_infer"
# 用法:
# 用法:
bash
PTND
/test_serving.sh ./
PTDN
/configs/ppocr_det_mobile_params.txt
bash
test_tipc
/test_serving.sh ./
test_tipc
/configs/ppocr_det_mobile_params.txt
```
```
#### 运行结果
#### 运行结果
各测试的运行情况会打印在
`
PTDN
/output/results_serving.log`
中:
各测试的运行情况会打印在
`
test_tipc
/output/results_serving.log`
中:
运行成功时会输出:
运行成功时会输出:
```
```
...
@@ -44,7 +44,7 @@ Run failed with command - xxxxx
...
@@ -44,7 +44,7 @@ Run failed with command - xxxxx
...
...
```
```
详细的预测结果会存在
PTDN
/output/ 文件夹下,例如
`server_infer_gpu_usetrt_True_precision_fp16_batchsize_1.log`
中会返回检测框的坐标:
详细的预测结果会存在
test_tipc
/output/ 文件夹下,例如
`server_infer_gpu_usetrt_True_precision_fp16_batchsize_1.log`
中会返回检测框的坐标:
```
```
{'err_no': 0, 'err_msg': '', 'key': ['dt_boxes'], 'value': ['[[[ 78. 642.]\n [409. 640.]\n [409. 657.]\n
{'err_no': 0, 'err_msg': '', 'key': ['dt_boxes'], 'value': ['[[[ 78. 642.]\n [409. 640.]\n [409. 657.]\n
...
...
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