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
1b144011
Unverified
Commit
1b144011
authored
Sep 07, 2021
by
MissPenguin
Committed by
GitHub
Sep 07, 2021
Browse files
Merge pull request #3829 from LDOUBLEV/fix_cpp
add export model for infer MODE
parents
0795697d
69fdbf81
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
tests/ocr_det_params.txt
tests/ocr_det_params.txt
+3
-3
tests/prepare.sh
tests/prepare.sh
+2
-2
tests/test.sh
tests/test.sh
+1
-3
No files found.
tests/ocr_det_params.txt
View file @
1b144011
...
...
@@ -34,13 +34,13 @@ distill_export:null
export1:null
export2:null
##
infer
_model:./inference/ch_ppocr_mobile_v2.0_det_
infer/
infer_export:
null
train
_model:./inference/ch_ppocr_mobile_v2.0_det_
train/best_accuracy
infer_export:
tools/export_model.py -c configs/det/det_mv3_db.yml -o
infer_quant:False
inference:tools/infer/predict_det.py
--use_gpu:True|False
--enable_mkldnn:True|False
--cpu_threads:
1|
6
--cpu_threads:6
--rec_batch_num:1
--use_tensorrt:False|True
--precision:fp32|fp16|int8
...
...
tests/prepare.sh
View file @
1b144011
...
...
@@ -63,10 +63,10 @@ elif [ ${MODE} = "whole_infer" ];then
cd
../
elif
[
${
MODE
}
=
"infer"
]
||
[
${
MODE
}
=
"cpp_infer"
]
;
then
if
[
${
model_name
}
=
"ocr_det"
]
;
then
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_
infer
"
eval_model_name
=
"ch_ppocr_mobile_v2.0_det_
train
"
rm
-rf
./train_data/icdar2015
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/test/ch_det_data_50.tar
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_
infer
.tar
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_
train
.tar
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
tar
xf ch_det_data_50.tar
&&
cd
../
elif
[
${
model_name
}
=
"ocr_server_det"
]
;
then
wget
-nc
-P
./inference https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_server_v2.0_det_infer.tar
...
...
tests/test.sh
View file @
1b144011
...
...
@@ -332,9 +332,7 @@ if [ ${MODE} = "infer" ]; then
export_cmd
=
"
${
python
}
${
norm_export
}
${
set_export_weight
}
${
set_save_infer_key
}
"
eval
$export_cmd
status_export
=
$?
if
[
${
status_export
}
=
0
]
;
then
status_check
$status_export
"
${
export_cmd
}
"
"
${
status_log
}
"
fi
else
save_infer_dir
=
${
infer_model
}
fi
...
...
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