Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleOCR
提交
10b7e706
P
PaddleOCR
项目概览
PaddlePaddle
/
PaddleOCR
大约 1 年 前同步成功
通知
1528
Star
32962
Fork
6643
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
108
列表
看板
标记
里程碑
合并请求
7
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
108
Issue
108
列表
看板
标记
里程碑
合并请求
7
合并请求
7
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
10b7e706
编写于
11月 12, 2021
作者:
M
MissPenguin
提交者:
GitHub
11月 12, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4624 from LDOUBLEV/test_v11
rename train_infer_params
上级
2bc3e343
9e1f25c7
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
68 addition
and
17 deletion
+68
-17
test_tipc/configs/ppocr_det_mobile/det_mv3_db.yml
test_tipc/configs/ppocr_det_mobile/det_mv3_db.yml
+0
-0
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/det_r50_vd_db.yml
test_tipc/configs/ppocr_det_server/det_r50_vd_db.yml
+0
-0
test_tipc/configs/ppocr_det_server/train_infer_python.txt
test_tipc/configs/ppocr_det_server/train_infer_python.txt
+51
-0
test_tipc/configs/ppocr_rec_server/rec_icdar15_r34_train.yml
test_tipc/configs/ppocr_rec_server/rec_icdar15_r34_train.yml
+0
-0
test_tipc/docs/test_train_inference_python.md
test_tipc/docs/test_train_inference_python.md
+11
-11
未找到文件。
test_tipc/configs/det_mv3_db.yml
→
test_tipc/configs/
ppocr_det_mobile/
det_mv3_db.yml
浏览文件 @
10b7e706
文件已移动
test_tipc/configs/ppocr_det_mobile/train_infer_python.txt
浏览文件 @
10b7e706
...
...
@@ -13,9 +13,9 @@ train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/
null:null
##
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
pact_train:deploy/slim/quantization/quant.py -c test_tipc/configs/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
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/
ppocr_det_mobile/
det_mv3_db.yml -o
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
null:null
null:null
...
...
@@ -27,9 +27,9 @@ null:null
===========================infer_params===========================
Global.save_inference_dir:./output/
Global.pretrained_model:
norm_export:tools/export_model.py -c test_tipc/configs/det_mv3_db.yml -o
quant_export:deploy/slim/quantization/export_model.py -c test_tipc/configs/det_mv3_db.yml -o
fpgm_export:deploy/slim/prune/export_prune_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/
ppocr_det_mobile/
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
export1:null
export2:null
...
...
test_tipc/configs/det_r50_vd_db.yml
→
test_tipc/configs/
ppocr_det_server/
det_r50_vd_db.yml
浏览文件 @
10b7e706
文件已移动
test_tipc/configs/ppocr_det_server/train_infer_python.txt
0 → 100644
浏览文件 @
10b7e706
===========================train_params===========================
model_name:ocr_server_det
python:python3.7
gpu_list:0|0,1
Global.use_gpu:True|True
Global.auto_cast:null
Global.epoch_num:lite_train_infer=2|whole_train_infer=300
Global.save_model_dir:./output/
Train.loader.batch_size_per_card:lite_train_infer=2|whole_train_infer=4
Global.pretrained_model:null
train_model_name:latest
train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/
null:null
##
trainer:norm_train|pact_train|fpgm_export
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_tipc/configs/ppocr_det_server/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
null:null
null:null
##
===========================eval_params===========================
eval:tools/eval.py -c test_tipc/configs/ppocr_det_server/det_r50_vd_db.yml -o
null:null
##
===========================infer_params===========================
Global.save_inference_dir:./output/
Global.pretrained_model:
norm_export:tools/export_model.py -c test_tipc/configs/ppocr_det_server/det_r50_vd_db.yml -o
quant_export:null
fpgm_export:null
distill_export:null
export1:null
export2:null
##
train_model:./inference/ch_ppocr_server_v2.0_det_train/best_accuracy
infer_export:tools/export_model.py -c configs/det/ch_ppocr_v2.0/ch_det_res18_db_v2.0.yml -o
infer_quant:False
inference:tools/infer/predict_det.py
--use_gpu:True|False
--enable_mkldnn:True|False
--cpu_threads:1|6
--rec_batch_num:1
--use_tensorrt:False|True
--precision:fp32|fp16|int8
--det_model_dir:
--image_dir:./inference/ch_det_data_50/all-sum-510/
--save_log_path:null
--benchmark:True
null:null
\ No newline at end of file
test_tipc/configs/rec_icdar15_r34_train.yml
→
test_tipc/configs/
ppocr_rec_server/
rec_icdar15_r34_train.yml
浏览文件 @
10b7e706
文件已移动
test_tipc/docs/test_train_inference_python.md
浏览文件 @
10b7e706
...
...
@@ -64,35 +64,35 @@ Linux端基础训练预测功能测试的主程序为`test_train_inference_pytho
-
模式1:lite_train_lite_infer,使用少量数据训练,用于快速验证训练到预测的走通流程,不验证精度和速度;
```
shell
bash test_tipc/prepare.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
_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
/train_infer_python
.txt
'lite_train_lite_infer'
```
-
模式2:lite_train_whole_infer,使用少量数据训练,一定量数据预测,用于验证训练后的模型执行预测,预测速度是否合理;
```
shell
bash test_tipc/prepare.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_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/train_infer_python
.txt
'lite_train_whole_infer'
```
-
模式3:whole_infer,不训练,全量数据预测,走通开源模型评估、动转静,检查inference model预测时间和精度;
```
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:
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卡号
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: 全量数据训练,全量数据预测,验证模型训练精度,预测精度,预测速度;
```
shell
bash test_tipc/prepare.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
_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
/train_infer_python
.txt
'whole_train_whole_infer'
```
-
模式5:klquant_whole_infer,测试离线量化;
```
shell
bash test_tipc/prepare.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_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/train_infer_python
.txt
'klquant_whole_infer'
```
运行相应指令后,在
`test_tipc/output`
文件夹下自动会保存运行日志。如'lite_train_lite_infer'模式下,会运行训练+inference的链条,因此,在
`test_tipc/output`
文件夹有以下文件:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录