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
94e8c3b6
Unverified
Commit
94e8c3b6
authored
Jul 23, 2020
by
shaohua.zhang
Committed by
GitHub
Jul 23, 2020
Browse files
repair a var
parent
af874033
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/train.py
tools/train.py
+2
-2
No files found.
tools/train.py
View file @
94e8c3b6
...
@@ -92,7 +92,7 @@ def main():
...
@@ -92,7 +92,7 @@ def main():
'fetch_name_list'
:
eval_fetch_name_list
,
\
'fetch_name_list'
:
eval_fetch_name_list
,
\
'fetch_varname_list'
:
eval_fetch_varname_list
}
'fetch_varname_list'
:
eval_fetch_varname_list
}
if
contain_
det
:
if
train_alg_type
==
'
det
'
:
program
.
train_eval_det_run
(
config
,
exe
,
train_info_dict
,
eval_info_dict
)
program
.
train_eval_det_run
(
config
,
exe
,
train_info_dict
,
eval_info_dict
)
else
:
else
:
program
.
train_eval_rec_run
(
config
,
exe
,
train_info_dict
,
eval_info_dict
)
program
.
train_eval_rec_run
(
config
,
exe
,
train_info_dict
,
eval_info_dict
)
...
@@ -117,6 +117,6 @@ def test_reader():
...
@@ -117,6 +117,6 @@ def test_reader():
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
startup_program
,
train_program
,
place
,
config
,
contain_det
=
program
.
preprocess
()
startup_program
,
train_program
,
place
,
config
,
train_alg_type
=
program
.
preprocess
()
main
()
main
()
# test_reader()
# test_reader()
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