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
OpenDAS
MMCV
Commits
e45f7b9c
Commit
e45f7b9c
authored
Dec 11, 2018
by
ThangVu
Browse files
minor
parent
9db49e56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/runner/hooks/logger/text.py
mmcv/runner/hooks/logger/text.py
+1
-1
No files found.
mmcv/runner/hooks/logger/text.py
View file @
e45f7b9c
...
...
@@ -25,7 +25,7 @@ class TextLoggerHook(LoggerHook):
time_sec_avg
=
self
.
time_sec_tot
/
(
runner
.
iter
+
1
)
eta_sec
=
time_sec_avg
*
(
runner
.
max_iters
-
runner
.
iter
-
1
)
eta_str
=
str
(
datetime
.
timedelta
(
seconds
=
int
(
eta_sec
)))
log_str
+=
(
'eta: {}, '
.
format
(
eta_str
)
)
log_str
+=
'eta: {}, '
.
format
(
eta_str
)
log_str
+=
(
'time: {log[time]:.3f}, data_time: {log[data_time]:.3f}, '
.
format
(
log
=
runner
.
log_buffer
.
output
))
...
...
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