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
vision
Commits
921b6bef
Unverified
Commit
921b6bef
authored
Sep 14, 2021
by
Vasilis Vryniotis
Committed by
GitHub
Sep 14, 2021
Browse files
Update the metrics output on reference scripts (#4408)
* Update log message. * Update fstring.
parent
d85aa6d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
references/classification/train.py
references/classification/train.py
+1
-2
No files found.
references/classification/train.py
View file @
921b6bef
...
@@ -71,8 +71,7 @@ def evaluate(model, criterion, data_loader, device, print_freq=100, log_suffix='
...
@@ -71,8 +71,7 @@ def evaluate(model, criterion, data_loader, device, print_freq=100, log_suffix='
# gather the stats from all processes
# gather the stats from all processes
metric_logger
.
synchronize_between_processes
()
metric_logger
.
synchronize_between_processes
()
print
(
' * Acc@1 {top1.global_avg:.3f} Acc@5 {top5.global_avg:.3f}'
print
(
f
'
{
header
}
Acc@1
{
metric_logger
.
acc1
.
global_avg
:.
3
f
}
Acc@5
{
metric_logger
.
acc5
.
global_avg
:.
3
f
}
'
)
.
format
(
top1
=
metric_logger
.
acc1
,
top5
=
metric_logger
.
acc5
))
return
metric_logger
.
acc1
.
global_avg
return
metric_logger
.
acc1
.
global_avg
...
...
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