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
43c17d31
Commit
43c17d31
authored
Nov 12, 2021
by
LDOUBLEV
Browse files
fix doc and config path
parent
606d98e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
test_tipc/configs/ppocr_det_mobile/train_infer_python.txt
test_tipc/configs/ppocr_det_mobile/train_infer_python.txt
+6
-6
test_tipc/configs/ppocr_det_server/train_infer_python.txt
test_tipc/configs/ppocr_det_server/train_infer_python.txt
+5
-5
test_tipc/docs/test_train_inference_python.md
test_tipc/docs/test_train_inference_python.md
+11
-11
No files found.
test_tipc/configs/ppocr_det_mobile/train_infer_python.txt
View file @
43c17d31
...
@@ -13,9 +13,9 @@ train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/
...
@@ -13,9 +13,9 @@ train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/
null:null
null:null
##
##
trainer:norm_train|pact_train|fpgm_train
trainer:norm_train|pact_train|fpgm_train
norm_train:tools/train.py -c test_tipc/configs/det_mv3_db.yml -o Global.pretrained_model=./pretrain_models/MobileNetV3_large_x0_5_pretrained
norm_train:tools/train.py -c test_tipc/configs/
ppocr_det_mobile/
det_mv3_db.yml -o Global.pretrained_model=./pretrain_models/MobileNetV3_large_x0_5_pretrained
pact_train:deploy/slim/quantization/quant.py -c test_tipc/configs/det_mv3_db.yml -o
pact_train:deploy/slim/quantization/quant.py -c test_tipc/configs/
ppocr_det_mobile/
det_mv3_db.yml -o
fpgm_train:deploy/slim/prune/sensitivity_anal.py -c test_tipc/configs/det_mv3_db.yml -o Global.pretrained_model=./pretrain_models/det_mv3_db_v2.0_train/best_accuracy
fpgm_train:deploy/slim/prune/sensitivity_anal.py -c test_tipc/configs/
ppocr_det_mobile/
det_mv3_db.yml -o Global.pretrained_model=./pretrain_models/det_mv3_db_v2.0_train/best_accuracy
distill_train:null
distill_train:null
null:null
null:null
null:null
null:null
...
@@ -27,9 +27,9 @@ null:null
...
@@ -27,9 +27,9 @@ null:null
===========================infer_params===========================
===========================infer_params===========================
Global.save_inference_dir:./output/
Global.save_inference_dir:./output/
Global.pretrained_model:
Global.pretrained_model:
norm_export:tools/export_model.py -c test_tipc/configs/det_mv3_db.yml -o
norm_export:tools/export_model.py -c test_tipc/configs/
ppocr_det_mobile/
det_mv3_db.yml -o
quant_export:deploy/slim/quantization/export_model.py -c test_tipc/configs/det_mv3_db.yml -o
quant_export:deploy/slim/quantization/export_model.py -c test_tipc/configs/
ppocr_det_mobile/
det_mv3_db.yml -o
fpgm_export:deploy/slim/prune/export_prune_model.py -c test_tipc/configs/det_mv3_db.yml -o
fpgm_export:deploy/slim/prune/export_prune_model.py -c test_tipc/configs/
ppocr_det_mobile/
det_mv3_db.yml -o
distill_export:null
distill_export:null
export1:null
export1:null
export2:null
export2:null
...
...
test_tipc/configs/ppocr_det_server/train_infer_python.txt
View file @
43c17d31
...
@@ -13,21 +13,21 @@ train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/
...
@@ -13,21 +13,21 @@ train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/
null:null
null:null
##
##
trainer:norm_train|pact_train|fpgm_export
trainer:norm_train|pact_train|fpgm_export
norm_train:tools/train.py -c test
s
/configs/det_r50_vd_db.yml -o
norm_train:tools/train.py -c test
_tipc
/configs/
ppocr_det_server/
det_r50_vd_db.yml -o
quant_export:deploy/slim/quantization/export_model.py -c test
s
/configs/det_r50_vd_db.yml -o
quant_export:deploy/slim/quantization/export_model.py -c test
_tipc
/configs/
ppocr_det_server/
det_r50_vd_db.yml -o
fpgm_export:deploy/slim/prune/export_prune_model.py -c test
s
/configs/det_r50_vd_db.yml -o
fpgm_export:deploy/slim/prune/export_prune_model.py -c test
_tipc
/configs/
ppocr_det_server/
det_r50_vd_db.yml -o
distill_train:null
distill_train:null
null:null
null:null
null:null
null:null
##
##
===========================eval_params===========================
===========================eval_params===========================
eval:tools/eval.py -c test
s
/configs/det_r50_vd_db.yml -o
eval:tools/eval.py -c test
_tipc
/configs/
ppocr_det_server/
det_r50_vd_db.yml -o
null:null
null:null
##
##
===========================infer_params===========================
===========================infer_params===========================
Global.save_inference_dir:./output/
Global.save_inference_dir:./output/
Global.pretrained_model:
Global.pretrained_model:
norm_export:tools/export_model.py -c test
s
/configs/det_r50_vd_db.yml -o
norm_export:tools/export_model.py -c test
_tipc
/configs/
ppocr_det_server/
det_r50_vd_db.yml -o
quant_export:null
quant_export:null
fpgm_export:null
fpgm_export:null
distill_export:null
distill_export:null
...
...
test_tipc/docs/test_train_inference_python.md
View file @
43c17d31
...
@@ -64,35 +64,35 @@ Linux端基础训练预测功能测试的主程序为`test_train_inference_pytho
...
@@ -64,35 +64,35 @@ Linux端基础训练预测功能测试的主程序为`test_train_inference_pytho
-
模式1:lite_train_lite_infer,使用少量数据训练,用于快速验证训练到预测的走通流程,不验证精度和速度;
-
模式1:lite_train_lite_infer,使用少量数据训练,用于快速验证训练到预测的走通流程,不验证精度和速度;
```
shell
```
shell
bash test_tipc/prepare.sh ./test_tipc/configs/ppocr_det_mobile
_params
.txt
'lite_train_lite_infer'
bash test_tipc/prepare.sh ./test_tipc/configs/ppocr_det_mobile
/train_infer_python
.txt
'lite_train_lite_infer'
bash test_tipc/test_train_inference_python.sh ./test_tipc/configs/ppocr_det_mobile
_params
.txt
'lite_train_lite_infer'
bash test_tipc/test_train_inference_python.sh ./test_tipc/configs/ppocr_det_mobile
/train_infer_python
.txt
'lite_train_lite_infer'
```
```
-
模式2:lite_train_whole_infer,使用少量数据训练,一定量数据预测,用于验证训练后的模型执行预测,预测速度是否合理;
-
模式2:lite_train_whole_infer,使用少量数据训练,一定量数据预测,用于验证训练后的模型执行预测,预测速度是否合理;
```
shell
```
shell
bash test_tipc/prepare.sh ./test_tipc/configs/ppocr_det_mobile
_params
.txt
'lite_train_whole_infer'
bash test_tipc/prepare.sh ./test_tipc/configs/ppocr_det_mobile
/train_infer_python
.txt
'lite_train_whole_infer'
bash test_tipc/test_train_inference_python.sh ./test_tipc/configs/ppocr_det_mobile
_params
.txt
'lite_train_whole_infer'
bash test_tipc/test_train_inference_python.sh
.
./test_tipc/configs/ppocr_det_mobile
/train_infer_python
.txt
'lite_train_whole_infer'
```
```
-
模式3:whole_infer,不训练,全量数据预测,走通开源模型评估、动转静,检查inference model预测时间和精度;
-
模式3:whole_infer,不训练,全量数据预测,走通开源模型评估、动转静,检查inference model预测时间和精度;
```
shell
```
shell
bash test_tipc/prepare.sh ./test_tipc/configs/ppocr_det_mobile
_params
.txt
'whole_infer'
bash test_tipc/prepare.sh ./test_tipc/configs/ppocr_det_mobile
/train_infer_python
.txt
'whole_infer'
# 用法1:
# 用法1:
bash test_tipc/test_train_inference_python.sh ./test_tipc/configs/ppocr_det_mobile
_params
.txt
'whole_infer'
bash test_tipc/test_train_inference_python.sh
.
./test_tipc/configs/ppocr_det_mobile
/train_infer_python
.txt
'whole_infer'
# 用法2: 指定GPU卡预测,第三个传入参数为GPU卡号
# 用法2: 指定GPU卡预测,第三个传入参数为GPU卡号
bash test_tipc/test_train_inference_python.sh ./test_tipc/configs/ppocr_det_mobile
_params
.txt
'whole_infer'
'1'
bash test_tipc/test_train_inference_python.sh ./test_tipc/configs/ppocr_det_mobile
/train_infer_python
.txt
'whole_infer'
'1'
```
```
-
模式4:whole_train_whole_infer,CE: 全量数据训练,全量数据预测,验证模型训练精度,预测精度,预测速度;
-
模式4:whole_train_whole_infer,CE: 全量数据训练,全量数据预测,验证模型训练精度,预测精度,预测速度;
```
shell
```
shell
bash test_tipc/prepare.sh ./test_tipc/configs/ppocr_det_mobile
_params
.txt
'whole_train_whole_infer'
bash test_tipc/prepare.sh ./test_tipc/configs/ppocr_det_mobile
/train_infer_python
.txt
'whole_train_whole_infer'
bash test_tipc/test_train_inference_python.sh ./test_tipc/configs/ppocr_det_mobile
_params
.txt
'whole_train_whole_infer'
bash test_tipc/test_train_inference_python.sh ./test_tipc/configs/ppocr_det_mobile
/train_infer_python
.txt
'whole_train_whole_infer'
```
```
-
模式5:klquant_whole_infer,测试离线量化;
-
模式5:klquant_whole_infer,测试离线量化;
```
shell
```
shell
bash test_tipc/prepare.sh ./test_tipc/configs/ppocr_det_mobile
_params
.txt
'klquant_whole_infer'
bash test_tipc/prepare.sh ./test_tipc/configs/ppocr_det_mobile
/train_infer_python
.txt
'klquant_whole_infer'
bash test_tipc/test_train_inference_python.sh test_tipc/configs/ppocr_det_mobile
_params
.txt
'klquant_whole_infer'
bash test_tipc/test_train_inference_python.sh
./
test_tipc/configs/ppocr_det_mobile
/train_infer_python
.txt
'klquant_whole_infer'
```
```
运行相应指令后,在
`test_tipc/output`
文件夹下自动会保存运行日志。如'lite_train_lite_infer'模式下,会运行训练+inference的链条,因此,在
`test_tipc/output`
文件夹有以下文件:
运行相应指令后,在
`test_tipc/output`
文件夹下自动会保存运行日志。如'lite_train_lite_infer'模式下,会运行训练+inference的链条,因此,在
`test_tipc/output`
文件夹有以下文件:
...
...
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