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
f97a8b37
Unverified
Commit
f97a8b37
authored
Apr 29, 2020
by
Maxim Bonnaerens
Committed by
GitHub
Apr 29, 2020
Browse files
Fix fstring in TextLoggerHook (#257)
parent
45a39dc6
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 @
f97a8b37
...
@@ -53,7 +53,7 @@ class TextLoggerHook(LoggerHook):
...
@@ -53,7 +53,7 @@ class TextLoggerHook(LoggerHook):
if
torch
.
cuda
.
is_available
():
if
torch
.
cuda
.
is_available
():
log_str
+=
f
'memory:
{
log_dict
[
"memory"
]
}
, '
log_str
+=
f
'memory:
{
log_dict
[
"memory"
]
}
, '
else
:
else
:
log_str
=
'Epoch({log_dict["mode"]}) '
\
log_str
=
f
'Epoch(
{
log_dict
[
"mode"
]
}
) '
\
f
'[
{
log_dict
[
"epoch"
]
-
1
}
][
{
log_dict
[
"iter"
]
}
]
\t
'
f
'[
{
log_dict
[
"epoch"
]
-
1
}
][
{
log_dict
[
"iter"
]
}
]
\t
'
log_items
=
[]
log_items
=
[]
for
name
,
val
in
log_dict
.
items
():
for
name
,
val
in
log_dict
.
items
():
...
...
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