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
fbbaf531
Commit
fbbaf531
authored
Jul 05, 2021
by
LDOUBLEV
Browse files
fix quant export
parent
605bf838
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
deploy/slim/quantization/export_model.py
deploy/slim/quantization/export_model.py
+3
-1
No files found.
deploy/slim/quantization/export_model.py
View file @
fbbaf531
...
@@ -92,9 +92,11 @@ def main():
...
@@ -92,9 +92,11 @@ def main():
# build dataloader
# build dataloader
valid_dataloader
=
build_dataloader
(
config
,
'Eval'
,
device
,
logger
)
valid_dataloader
=
build_dataloader
(
config
,
'Eval'
,
device
,
logger
)
use_srn
=
config
[
'Architecture'
][
'algorithm'
]
==
"SRN"
model_type
=
config
[
'Architecture'
][
'model_type'
]
# start eval
# start eval
metirc
=
program
.
eval
(
model
,
valid_dataloader
,
post_process_class
,
metirc
=
program
.
eval
(
model
,
valid_dataloader
,
post_process_class
,
eval_class
)
eval_class
,
model_type
,
use_srn
)
logger
.
info
(
'metric eval ***************'
)
logger
.
info
(
'metric eval ***************'
)
for
k
,
v
in
metirc
.
items
():
for
k
,
v
in
metirc
.
items
():
logger
.
info
(
'{}:{}'
.
format
(
k
,
v
))
logger
.
info
(
'{}:{}'
.
format
(
k
,
v
))
...
...
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