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
2a9b1b2d
Unverified
Commit
2a9b1b2d
authored
Dec 09, 2021
by
Double_V
Committed by
GitHub
Dec 09, 2021
Browse files
Merge pull request #4879 from andyjpaddle/fix_det_slim_export
fix det slim export
parents
1275111f
5db482cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
configs/det/ch_PP-OCRv2/ch_PP-OCRv2_det_cml.yml
configs/det/ch_PP-OCRv2/ch_PP-OCRv2_det_cml.yml
+1
-0
deploy/slim/quantization/export_model.py
deploy/slim/quantization/export_model.py
+2
-3
test_tipc/configs/ch_ppocr_server_v2.0_det/train_infer_python.txt
...c/configs/ch_ppocr_server_v2.0_det/train_infer_python.txt
+3
-3
No files found.
configs/det/ch_PP-OCRv2/ch_PP-OCRv2_det_cml.yml
View file @
2a9b1b2d
...
@@ -18,6 +18,7 @@ Global:
...
@@ -18,6 +18,7 @@ Global:
Architecture
:
Architecture
:
name
:
DistillationModel
name
:
DistillationModel
algorithm
:
Distillation
algorithm
:
Distillation
model_type
:
det
Models
:
Models
:
Teacher
:
Teacher
:
freeze_params
:
true
freeze_params
:
true
...
...
deploy/slim/quantization/export_model.py
View file @
2a9b1b2d
...
@@ -111,7 +111,7 @@ def main():
...
@@ -111,7 +111,7 @@ def main():
valid_dataloader
=
build_dataloader
(
config
,
'Eval'
,
device
,
logger
)
valid_dataloader
=
build_dataloader
(
config
,
'Eval'
,
device
,
logger
)
use_srn
=
config
[
'Architecture'
][
'algorithm'
]
==
"SRN"
use_srn
=
config
[
'Architecture'
][
'algorithm'
]
==
"SRN"
model_type
=
config
[
'Architecture'
]
[
'model_type'
]
model_type
=
config
[
'Architecture'
]
.
get
(
'model_type'
,
None
)
# start eval
# start eval
metric
=
program
.
eval
(
model
,
valid_dataloader
,
post_process_class
,
metric
=
program
.
eval
(
model
,
valid_dataloader
,
post_process_class
,
eval_class
,
model_type
,
use_srn
)
eval_class
,
model_type
,
use_srn
)
...
@@ -120,8 +120,7 @@ def main():
...
@@ -120,8 +120,7 @@ def main():
for
k
,
v
in
metric
.
items
():
for
k
,
v
in
metric
.
items
():
logger
.
info
(
'{}:{}'
.
format
(
k
,
v
))
logger
.
info
(
'{}:{}'
.
format
(
k
,
v
))
infer_shape
=
[
3
,
32
,
100
]
if
config
[
'Architecture'
][
infer_shape
=
[
3
,
32
,
100
]
if
model_type
==
"rec"
else
[
3
,
640
,
640
]
'model_type'
]
!=
"det"
else
[
3
,
640
,
640
]
save_path
=
config
[
"Global"
][
"save_inference_dir"
]
save_path
=
config
[
"Global"
][
"save_inference_dir"
]
...
...
test_tipc/configs/ch_ppocr_server_v2.0_det/train_infer_python.txt
View file @
2a9b1b2d
...
@@ -13,7 +13,7 @@ train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/
...
@@ -13,7 +13,7 @@ train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/
null:null
null:null
##
##
trainer:norm_train
trainer:norm_train
norm_train:tools/train.py -c test_tipc/configs/ppocr_
det_
server/det_r50_vd_db.yml -o
norm_train:tools/train.py -c test_tipc/configs/
ch_
ppocr_server
_v2.0_det
/det_r50_vd_db.yml -o
quant_train:null
quant_train:null
fpgm_train:null
fpgm_train:null
distill_train:null
distill_train:null
...
@@ -21,13 +21,13 @@ null:null
...
@@ -21,13 +21,13 @@ null:null
null:null
null:null
##
##
===========================eval_params===========================
===========================eval_params===========================
eval:tools/eval.py -c test_tipc/configs/ppocr_
det_
server/det_r50_vd_db.yml -o
eval:tools/eval.py -c test_tipc/configs/
ch_
ppocr_server
_v2.0_det
/det_r50_vd_db.yml -o
null:null
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_tipc/configs/ppocr_
det_
server/det_r50_vd_db.yml -o
norm_export:tools/export_model.py -c test_tipc/configs/
ch_
ppocr_server
_v2.0_det
/det_r50_vd_db.yml -o
quant_export:null
quant_export:null
fpgm_export:null
fpgm_export:null
distill_export:null
distill_export:null
...
...
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