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
f5e0e9d0
Commit
f5e0e9d0
authored
Jul 07, 2020
by
LDOUBLEV
Browse files
update
parent
e222bc9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/program.py
tools/program.py
+2
-2
No files found.
tools/program.py
View file @
f5e0e9d0
...
...
@@ -253,7 +253,7 @@ def train_eval_det_run(config, exe, train_info_dict, eval_info_dict):
t2
=
time
.
time
()
train_batch_elapse
=
t2
-
t1
train_stats
.
update
(
stats
)
if
train_batch_id
>
start_eval_step
and
train_batch_id
\
if
train_batch_id
>
start_eval_step
and
(
train_batch_id
-
start_eval_step
)
\
%
print_batch_step
==
0
:
logs
=
train_stats
.
log
()
strs
=
'epoch: {}, iter: {}, {}, time: {:.3f}'
.
format
(
...
...
@@ -338,7 +338,7 @@ def train_eval_rec_run(config, exe, train_info_dict, eval_info_dict):
train_batch_elapse
=
t2
-
t1
stats
=
{
'loss'
:
loss
,
'acc'
:
acc
}
train_stats
.
update
(
stats
)
if
train_batch_id
>
start_eval_step
and
train_batch_id
\
if
train_batch_id
>
start_eval_step
and
(
train_batch_id
-
start_eval_step
)
\
%
print_batch_step
==
0
:
logs
=
train_stats
.
log
()
strs
=
'epoch: {}, iter: {}, lr: {:.6f}, {}, time: {:.3f}'
.
format
(
...
...
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