Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_41840029
PaddleOCR
提交
72affde1
P
PaddleOCR
项目概览
weixin_41840029
/
PaddleOCR
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleOCR
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
72affde1
编写于
12月 15, 2021
作者:
D
Double_V
提交者:
GitHub
12月 15, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4925 from andyjpaddle/fix_infinite
fix PACT model dir
上级
a488e615
7d4cfdff
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
19 addition
and
14 deletion
+19
-14
test_tipc/configs/ch_PP-OCRv2_det/train_infer_python.txt
test_tipc/configs/ch_PP-OCRv2_det/train_infer_python.txt
+1
-1
test_tipc/configs/ch_PP-OCRv2_det_PACT/train_infer_python.txt
..._tipc/configs/ch_PP-OCRv2_det_PACT/train_infer_python.txt
+1
-1
test_tipc/configs/ch_PP-OCRv2_rec_PACT/train_infer_python.txt
..._tipc/configs/ch_PP-OCRv2_rec_PACT/train_infer_python.txt
+1
-1
test_tipc/configs/ch_ppocr_mobile_v2.0_det_PACT/train_infer_python.txt
...figs/ch_ppocr_mobile_v2.0_det_PACT/train_infer_python.txt
+2
-2
test_tipc/configs/ch_ppocr_mobile_v2.0_rec_PACT/train_infer_python.txt
...figs/ch_ppocr_mobile_v2.0_rec_PACT/train_infer_python.txt
+1
-1
test_tipc/configs/det_mv3_east_v2.0/train_infer_python.txt
test_tipc/configs/det_mv3_east_v2.0/train_infer_python.txt
+1
-1
test_tipc/configs/det_mv3_pse_v2.0/train_infer_python.txt
test_tipc/configs/det_mv3_pse_v2.0/train_infer_python.txt
+1
-1
test_tipc/configs/det_r50_vd_east_v2.0/train_infer_python.txt
..._tipc/configs/det_r50_vd_east_v2.0/train_infer_python.txt
+1
-1
test_tipc/prepare.sh
test_tipc/prepare.sh
+10
-5
未找到文件。
test_tipc/configs/ch_PP-OCRv2_det/train_infer_python.txt
浏览文件 @
72affde1
...
@@ -26,7 +26,7 @@ null:null
...
@@ -26,7 +26,7 @@ null:null
##
##
===========================infer_params===========================
===========================infer_params===========================
Global.save_inference_dir:./output/
Global.save_inference_dir:./output/
Global.
pretrained_model
:
Global.
checkpoints
:
norm_export:tools/export_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCRv2_det_cml.yml -o
norm_export:tools/export_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCRv2_det_cml.yml -o
quant_export:deploy/slim/quantization/export_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCRv2_det_cml.yml -o
quant_export:deploy/slim/quantization/export_model.py -c configs/det/ch_PP-OCRv2/ch_PP-OCRv2_det_cml.yml -o
fpgm_export:
fpgm_export:
...
...
test_tipc/configs/ch_PP-OCRv2_det_PACT/train_infer_python.txt
浏览文件 @
72affde1
===========================train_params===========================
===========================train_params===========================
model_name:
PPOCRv2_det
model_name:
ch_PPOCRv2_det_PACT
python:python3.7
python:python3.7
gpu_list:0|0,1
gpu_list:0|0,1
Global.use_gpu:True|True
Global.use_gpu:True|True
...
...
test_tipc/configs/ch_PP-OCRv2_rec_PACT/train_infer_python.txt
浏览文件 @
72affde1
...
@@ -34,7 +34,7 @@ distill_export:null
...
@@ -34,7 +34,7 @@ distill_export:null
export1:null
export1:null
export2:null
export2:null
inference_dir:Student
inference_dir:Student
infer_model:./inference/ch_PP-OCRv2_rec_infer
infer_model:./inference/ch_PP-OCRv2_rec_
slim_quant_
infer
infer_export:null
infer_export:null
infer_quant:True
infer_quant:True
inference:tools/infer/predict_rec.py
inference:tools/infer/predict_rec.py
...
...
test_tipc/configs/ch_ppocr_mobile_v2.0_det_PACT/train_infer_python.txt
浏览文件 @
72affde1
===========================train_params===========================
===========================train_params===========================
model_name:
ocr_det
model_name:
ch_ppocr_mobile_v2.0_det_PACT
python:python3.7
python:python3.7
gpu_list:0|0,1
gpu_list:0|0,1
Global.use_gpu:True|True
Global.use_gpu:True|True
...
@@ -34,7 +34,7 @@ distill_export:null
...
@@ -34,7 +34,7 @@ distill_export:null
export1:null
export1:null
export2:null
export2:null
inference_dir:null
inference_dir:null
train_model:
null
train_model:
./inference/ch_ppocr_mobile_v2.0_det_prune_infer/
infer_export:null
infer_export:null
infer_quant:False
infer_quant:False
inference:tools/infer/predict_det.py
inference:tools/infer/predict_det.py
...
...
test_tipc/configs/ch_ppocr_mobile_v2.0_rec_PACT/train_infer_python.txt
浏览文件 @
72affde1
...
@@ -34,7 +34,7 @@ distill_export:null
...
@@ -34,7 +34,7 @@ distill_export:null
export1:null
export1:null
export2:null
export2:null
inference_dir:null
inference_dir:null
train_model:
null
train_model:
./inference/ch_ppocr_mobile_v2.0_rec_slim_infer/
infer_export:null
infer_export:null
infer_quant:False
infer_quant:False
inference:tools/infer/predict_rec.py --rec_char_dict_path=./ppocr/utils/ppocr_keys_v1.txt --rec_image_shape="3,32,100"
inference:tools/infer/predict_rec.py --rec_char_dict_path=./ppocr/utils/ppocr_keys_v1.txt --rec_image_shape="3,32,100"
...
...
test_tipc/configs/det_mv3_east_v2.0/train_infer_python.txt
浏览文件 @
72affde1
...
@@ -35,7 +35,7 @@ export1:null
...
@@ -35,7 +35,7 @@ export1:null
export2:null
export2:null
##
##
train_model:./inference/det_mv3_east/best_accuracy
train_model:./inference/det_mv3_east/best_accuracy
infer_export:tools/export_model.py -c test_tipc/c
c
onfigs/det_mv3_east_v2.0/det_mv3_east.yml -o
infer_export:tools/export_model.py -c test_tipc/configs/det_mv3_east_v2.0/det_mv3_east.yml -o
infer_quant:False
infer_quant:False
inference:tools/infer/predict_det.py
inference:tools/infer/predict_det.py
--use_gpu:True|False
--use_gpu:True|False
...
...
test_tipc/configs/det_mv3_pse_v2.0/train_infer_python.txt
浏览文件 @
72affde1
...
@@ -35,7 +35,7 @@ export1:null
...
@@ -35,7 +35,7 @@ export1:null
export2:null
export2:null
##
##
train_model:./inference/det_mv3_pse/best_accuracy
train_model:./inference/det_mv3_pse/best_accuracy
infer_export:tools/export_model.py -c test_tipc/c
c
onfigs/det_mv3_pse_v2.0/det_mv3_pse.yml -o
infer_export:tools/export_model.py -c test_tipc/configs/det_mv3_pse_v2.0/det_mv3_pse.yml -o
infer_quant:False
infer_quant:False
inference:tools/infer/predict_det.py
inference:tools/infer/predict_det.py
--use_gpu:True|False
--use_gpu:True|False
...
...
test_tipc/configs/det_r50_vd_east_v2.0/train_infer_python.txt
浏览文件 @
72affde1
...
@@ -35,7 +35,7 @@ export1:null
...
@@ -35,7 +35,7 @@ export1:null
export2:null
export2:null
##
##
train_model:./inference/det_r50_vd_east/best_accuracy
train_model:./inference/det_r50_vd_east/best_accuracy
infer_export:tools/export_model.py -c test_tipc/c
c
onfigs/det_r50_vd_east_v2.0/det_r50_vd_east.yml -o
infer_export:tools/export_model.py -c test_tipc/configs/det_r50_vd_east_v2.0/det_r50_vd_east.yml -o
infer_quant:False
infer_quant:False
inference:tools/infer/predict_det.py
inference:tools/infer/predict_det.py
--use_gpu:True|False
--use_gpu:True|False
...
...
test_tipc/prepare.sh
浏览文件 @
72affde1
...
@@ -111,6 +111,10 @@ elif [ ${MODE} = "whole_infer" ];then
...
@@ -111,6 +111,10 @@ elif [ ${MODE} = "whole_infer" ];then
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_train.tar
--no-check-certificate
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_train.tar
--no-check-certificate
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_infer.tar
--no-check-certificate
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_infer.tar
--no-check-certificate
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
tar
xf ch_det_data_50.tar
&&
tar
xf ch_ppocr_mobile_v2.0_det_infer.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
tar
xf ch_det_data_50.tar
&&
tar
xf ch_ppocr_mobile_v2.0_det_infer.tar
&&
cd
../
elif
[
${
model_name
}
=
"ch_ppocr_mobile_v2.0_det_PACT"
]
;
then
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_prune_infer"
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/slim/ch_ppocr_mobile_v2.0_det_prune_infer.tar
--no-check-certificate
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
tar
xf ch_det_data_50.tar
&&
cd
../
elif
[
${
model_name
}
=
"ch_ppocr_server_v2.0_det"
]
;
then
elif
[
${
model_name
}
=
"ch_ppocr_server_v2.0_det"
]
;
then
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_det_train.tar
--no-check-certificate
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_det_train.tar
--no-check-certificate
cd
./inference
&&
tar
xf ch_ppocr_server_v2.0_det_train.tar
&&
tar
xf ch_det_data_50.tar
&&
cd
../
cd
./inference
&&
tar
xf ch_ppocr_server_v2.0_det_train.tar
&&
tar
xf ch_det_data_50.tar
&&
cd
../
...
@@ -131,12 +135,12 @@ elif [ ${MODE} = "whole_infer" ];then
...
@@ -131,12 +135,12 @@ elif [ ${MODE} = "whole_infer" ];then
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_rec_infer.tar
--no-check-certificate
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_rec_infer.tar
--no-check-certificate
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
elif
[
${
model_name
}
=
"ch_ppocr_mobile_v2.0_rec_PACT"
]
;
then
elif
[
${
model_name
}
=
"ch_ppocr_mobile_v2.0_rec_PACT"
]
;
then
eval_model_name
=
"ch_
PP-OCRv2_rec_slim_quant_train
"
eval_model_name
=
"ch_
ppocr_mobile_v2.0_rec_slim_infer
"
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/
PP-OCRv2/chinese/ch_PP-OCRv2_rec_slim_quant_train
.tar
--no-check-certificate
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/
dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_rec_slim_infer
.tar
--no-check-certificate
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
elif
[
${
model_name
}
=
"ch_ppocr_mobile_v2.0_rec_FPGM"
]
;
then
elif
[
${
model_name
}
=
"ch_ppocr_mobile_v2.0_rec_FPGM"
]
;
then
eval_model_name
=
"ch_PP-OCRv2_rec_
train
"
eval_model_name
=
"ch_PP-OCRv2_rec_
infer
"
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_rec_
train
.tar
--no-check-certificate
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_rec_
infer
.tar
--no-check-certificate
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
fi
fi
if
[[
${
model_name
}
=
~
"ch_PPOCRv2_det"
]]
;
then
if
[[
${
model_name
}
=
~
"ch_PPOCRv2_det"
]]
;
then
...
@@ -147,7 +151,8 @@ elif [ ${MODE} = "whole_infer" ];then
...
@@ -147,7 +151,8 @@ elif [ ${MODE} = "whole_infer" ];then
if
[[
${
model_name
}
=
~
"PPOCRv2_ocr_rec"
]]
;
then
if
[[
${
model_name
}
=
~
"PPOCRv2_ocr_rec"
]]
;
then
eval_model_name
=
"ch_PP-OCRv2_rec_infer"
eval_model_name
=
"ch_PP-OCRv2_rec_infer"
wget
-nc
-P
./inference/ https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_rec_infer.tar
--no-check-certificate
wget
-nc
-P
./inference/ https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_rec_infer.tar
--no-check-certificate
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
wget
-nc
-P
./inference/ https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_rec_slim_quant_infer.tar
--no-check-certificate
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
tar
xf ch_PP-OCRv2_rec_slim_quant_infer.tar
&&
cd
../
fi
fi
if
[
${
model_name
}
==
"en_server_pgnetA"
]
;
then
if
[
${
model_name
}
==
"en_server_pgnetA"
]
;
then
wget
-nc
-P
./inference/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/pgnet/en_server_pgnetA.tar
--no-check-certificate
wget
-nc
-P
./inference/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/pgnet/en_server_pgnetA.tar
--no-check-certificate
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录