Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
聚火科技码农
PaddleOCR
提交
777857ec
P
PaddleOCR
项目概览
聚火科技码农
/
PaddleOCR
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleOCR
通知
1
Star
0
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
777857ec
编写于
6月 17, 2021
作者:
L
LDOUBLEV
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename quant and prune
上级
868d3062
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
6 deletion
+7
-6
test/infer.sh
test/infer.sh
+2
-2
test/paddleocr_ci_params.txt
test/paddleocr_ci_params.txt
+2
-2
test/test.sh
test/test.sh
+3
-2
未找到文件。
test/infer.sh
浏览文件 @
777857ec
...
...
@@ -76,7 +76,7 @@ for train_model in ${train_model_list[*]}; do
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_rec_train.tar
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
fi
elif
[
${
slim_trainer
}
=
"
quan
t"
]
;
then
elif
[
${
slim_trainer
}
=
"
pac
t"
]
;
then
if
[
${
model_name
}
=
"det"
]
;
then
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_quant_train"
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/slim/ch_ppocr_mobile_v2.0_det_quant_train.tar
...
...
@@ -96,7 +96,7 @@ for train_model in ${train_model_list[*]}; do
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/slim/ch_ppocr_mobile_v2.0_rec_distill_train.tar
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
cd
../
fi
elif
[
${
slim_trainer
}
=
"
prune
"
]
;
then
elif
[
${
slim_trainer
}
=
"
fpgm
"
]
;
then
if
[
${
model_name
}
=
"det"
]
;
then
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_prune_train"
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/slim/ch_ppocr_mobile_v2.0_det_prune_train.tar
...
...
test/paddleocr_ci_params.txt
浏览文件 @
777857ec
train_model_list: ocr_det
gpu_list: -1|0|0,1
auto_cast_list: False
trainer_list: norm|
quant
auto_cast_list: False
|True
trainer_list: norm|
pact|fpgm
python: python3.7
inference: python
...
...
test/test.sh
浏览文件 @
777857ec
...
...
@@ -75,6 +75,7 @@ ${python} -m pip install psutil;
${
python
}
-m
pip
install
GPUtil
;
${
python
}
-m
pip
install
paddlesim
==
2.0.0
function
status_check
(){
last_status
=
$1
# the exit code
run_model
=
$2
...
...
@@ -119,11 +120,11 @@ for train_model in ${train_model_list[*]}; do
trainer
=
"tools/train.py"
export_model
=
"tools/export_model.py"
pretrain
=
"./pretrain_models/MobileNetV3_large_x0_5_pretrained"
elif
[
${
slim_trainer
}
=
"
quan
t"
]
;
then
elif
[
${
slim_trainer
}
=
"
pac
t"
]
;
then
trainer
=
"deploy/slim/quantization/quant.py"
export_model
=
"deploy/slim/quantization/export_model.py"
pretrain
=
"./pretrain_models/det_mv3_db_v2.0_train/best_accuracy"
elif
[
${
slim_trainer
}
=
"
prune
"
]
;
then
elif
[
${
slim_trainer
}
=
"
fpgm
"
]
;
then
trainer
=
"deploy/slim/prune/sensitivity_anal.py"
export_model
=
"deploy/slim/prune/export_prune_model.py"
pretrain
=
"./pretrain_models/det_mv3_db_v2.0_train/best_accuracy"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录