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
b41fd6ee
Commit
b41fd6ee
authored
Dec 09, 2021
by
andyjpaddle
Browse files
fix det slim export
parent
1275111f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
deploy/slim/quantization/export_model.py
deploy/slim/quantization/export_model.py
+1
-1
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.
deploy/slim/quantization/export_model.py
View file @
b41fd6ee
...
@@ -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
=
c
on
fig
[
'Architecture'
][
'model_type'
]
model_type
=
N
on
e
# 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
)
...
...
test_tipc/configs/ch_ppocr_server_v2.0_det/train_infer_python.txt
View file @
b41fd6ee
...
@@ -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