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
eb84e5d5
Unverified
Commit
eb84e5d5
authored
May 11, 2020
by
Erik
Committed by
GitHub
May 11, 2020
Browse files
Update engine.py (#2187)
adding slight clarification to evaluation logic area, regarding images
parent
a81d99b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
references/detection/engine.py
references/detection/engine.py
+3
-3
No files found.
references/detection/engine.py
View file @
eb84e5d5
...
@@ -81,13 +81,13 @@ def evaluate(model, data_loader, device):
...
@@ -81,13 +81,13 @@ def evaluate(model, data_loader, device):
iou_types
=
_get_iou_types
(
model
)
iou_types
=
_get_iou_types
(
model
)
coco_evaluator
=
CocoEvaluator
(
coco
,
iou_types
)
coco_evaluator
=
CocoEvaluator
(
coco
,
iou_types
)
for
image
,
targets
in
metric_logger
.
log_every
(
data_loader
,
100
,
header
):
for
image
s
,
targets
in
metric_logger
.
log_every
(
data_loader
,
100
,
header
):
image
=
list
(
img
.
to
(
device
)
for
img
in
image
)
image
s
=
list
(
img
.
to
(
device
)
for
img
in
image
s
)
targets
=
[{
k
:
v
.
to
(
device
)
for
k
,
v
in
t
.
items
()}
for
t
in
targets
]
targets
=
[{
k
:
v
.
to
(
device
)
for
k
,
v
in
t
.
items
()}
for
t
in
targets
]
torch
.
cuda
.
synchronize
()
torch
.
cuda
.
synchronize
()
model_time
=
time
.
time
()
model_time
=
time
.
time
()
outputs
=
model
(
image
)
outputs
=
model
(
image
s
)
outputs
=
[{
k
:
v
.
to
(
cpu_device
)
for
k
,
v
in
t
.
items
()}
for
t
in
outputs
]
outputs
=
[{
k
:
v
.
to
(
cpu_device
)
for
k
,
v
in
t
.
items
()}
for
t
in
outputs
]
model_time
=
time
.
time
()
-
model_time
model_time
=
time
.
time
()
-
model_time
...
...
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