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
00be04c5
Unverified
Commit
00be04c5
authored
Oct 28, 2021
by
MissPenguin
Committed by
GitHub
Oct 28, 2021
Browse files
Merge pull request #4477 from LDOUBLEV/dygraph
fix run bug
parents
c9434a08
6335209b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
17 deletions
+18
-17
test_tipc/configs/ppocr_det_mobile_params.txt
test_tipc/configs/ppocr_det_mobile_params.txt
+6
-6
test_tipc/prepare.sh
test_tipc/prepare.sh
+5
-4
test_tipc/test_inference_cpp.sh
test_tipc/test_inference_cpp.sh
+2
-2
test_tipc/test_serving.sh
test_tipc/test_serving.sh
+3
-3
test_tipc/test_train_inference_python.sh
test_tipc/test_train_inference_python.sh
+2
-2
No files found.
test_tipc/configs/ppocr_det_mobile_params.txt
View file @
00be04c5
...
@@ -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
s
/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/det_mv3_db.yml -o Global.pretrained_model=./pretrain_models/MobileNetV3_large_x0_5_pretrained
pact_train:deploy/slim/quantization/quant.py -c test
s
/configs/det_mv3_db.yml -o
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
s
/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/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
s
/configs/det_mv3_db.yml -o
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
s
/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
s
/configs/det_mv3_db.yml -o
fpgm_export:deploy/slim/prune/export_prune_model.py -c test
_tipc
/configs/det_mv3_db.yml -o
distill_export:null
distill_export:null
export1:null
export1:null
export2:null
export2:null
...
...
test_tipc/prepare.sh
View file @
00be04c5
...
@@ -121,8 +121,7 @@ elif [ ${MODE} = "whole_infer" ];then
...
@@ -121,8 +121,7 @@ elif [ ${MODE} = "whole_infer" ];then
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
tar
xf ch_det_data_50.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
tar
xf ch_det_data_50.tar
&&
cd
../
fi
fi
elif
[
${
MODE
}
=
"klquant_whole_infer"
]
;
then
if
[
${
MODE
}
=
"klquant_whole_infer"
]
;
then
if
[
${
model_name
}
=
"ocr_det"
]
;
then
if
[
${
model_name
}
=
"ocr_det"
]
;
then
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_infer.tar
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/test/ch_det_data_50.tar
...
@@ -134,7 +133,9 @@ elif [ ${MODE} = "klquant_whole_infer" ];then
...
@@ -134,7 +133,9 @@ elif [ ${MODE} = "klquant_whole_infer" ];then
wget
-nc
-P
./inference/ https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_det_infer.tar
wget
-nc
-P
./inference/ https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_det_infer.tar
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
tar
xf ch_det_data_50.tar
&&
cd
../
cd
./inference
&&
tar
xf
${
eval_model_name
}
.tar
&&
tar
xf ch_det_data_50.tar
&&
cd
../
fi
fi
elif
[
${
MODE
}
=
"cpp_infer"
]
;
then
fi
if
[
${
MODE
}
=
"cpp_infer"
]
;
then
if
[
${
model_name
}
=
"ocr_det"
]
;
then
if
[
${
model_name
}
=
"ocr_det"
]
;
then
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/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_infer.tar
...
...
test_tipc/test_inference_cpp.sh
View file @
00be04c5
#!/bin/bash
#!/bin/bash
source
test
s
/common_func.sh
source
test
_tipc
/common_func.sh
FILENAME
=
$1
FILENAME
=
$1
dataline
=
$(
awk
'NR==52, NR==66{print}'
$FILENAME
)
dataline
=
$(
awk
'NR==52, NR==66{print}'
$FILENAME
)
...
@@ -35,7 +35,7 @@ cpp_benchmark_key=$(func_parser_key "${lines[14]}")
...
@@ -35,7 +35,7 @@ cpp_benchmark_key=$(func_parser_key "${lines[14]}")
cpp_benchmark_value
=
$(
func_parser_value
"
${
lines
[14]
}
"
)
cpp_benchmark_value
=
$(
func_parser_value
"
${
lines
[14]
}
"
)
LOG_PATH
=
"./test
s
/output"
LOG_PATH
=
"./test
_tipc
/output"
mkdir
-p
${
LOG_PATH
}
mkdir
-p
${
LOG_PATH
}
status_log
=
"
${
LOG_PATH
}
/results_cpp.log"
status_log
=
"
${
LOG_PATH
}
/results_cpp.log"
...
...
test_tipc/test_serving.sh
View file @
00be04c5
#!/bin/bash
#!/bin/bash
source
PTDN
/common_func.sh
source
test_tipc
/common_func.sh
FILENAME
=
$1
FILENAME
=
$1
dataline
=
$(
awk
'NR==67, NR==83{print}'
$FILENAME
)
dataline
=
$(
awk
'NR==67, NR==83{print}'
$FILENAME
)
...
@@ -36,8 +36,8 @@ web_precision_key=$(func_parser_key "${lines[15]}")
...
@@ -36,8 +36,8 @@ web_precision_key=$(func_parser_key "${lines[15]}")
web_precision_list
=
$(
func_parser_value
"
${
lines
[15]
}
"
)
web_precision_list
=
$(
func_parser_value
"
${
lines
[15]
}
"
)
pipeline_py
=
$(
func_parser_value
"
${
lines
[16]
}
"
)
pipeline_py
=
$(
func_parser_value
"
${
lines
[16]
}
"
)
LOG_PATH
=
"../../
PTDN
/output"
LOG_PATH
=
"../../
test_tipc
/output"
mkdir
-p
./
PTDN
/output
mkdir
-p
./
test_tipc
/output
status_log
=
"
${
LOG_PATH
}
/results_serving.log"
status_log
=
"
${
LOG_PATH
}
/results_serving.log"
function
func_serving
(){
function
func_serving
(){
...
...
test_tipc/test_train_inference_python.sh
View file @
00be04c5
#!/bin/bash
#!/bin/bash
source
test
s
/common_func.sh
source
test
_tipc
/common_func.sh
FILENAME
=
$1
FILENAME
=
$1
# MODE be one of ['lite_train_lite_infer' 'lite_train_whole_infer' 'whole_train_whole_infer', 'whole_infer', 'klquant_whole_infer']
# MODE be one of ['lite_train_lite_infer' 'lite_train_whole_infer' 'whole_train_whole_infer', 'whole_infer', 'klquant_whole_infer']
...
@@ -120,7 +120,7 @@ if [ ${MODE} = "klquant_whole_infer" ]; then
...
@@ -120,7 +120,7 @@ if [ ${MODE} = "klquant_whole_infer" ]; then
infer_value1
=
$(
func_parser_value
"
${
lines
[15]
}
"
)
infer_value1
=
$(
func_parser_value
"
${
lines
[15]
}
"
)
fi
fi
LOG_PATH
=
"./test
s
/output"
LOG_PATH
=
"./test
_tipc
/output"
mkdir
-p
${
LOG_PATH
}
mkdir
-p
${
LOG_PATH
}
status_log
=
"
${
LOG_PATH
}
/results_python.log"
status_log
=
"
${
LOG_PATH
}
/results_python.log"
...
...
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