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
ModelZoo
ResNet50_tensorflow
Commits
2bd76d13
Commit
2bd76d13
authored
May 25, 2022
by
Liangzhe Yuan
Committed by
TF Object Detection Team
May 25, 2022
Browse files
Add class index in the object detection evaluation logging info.
PiperOrigin-RevId: 450994731
parent
5212bb9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
research/object_detection/utils/object_detection_evaluation.py
...rch/object_detection/utils/object_detection_evaluation.py
+2
-1
No files found.
research/object_detection/utils/object_detection_evaluation.py
View file @
2bd76d13
...
@@ -1335,7 +1335,8 @@ class ObjectDetectionEvaluation(object):
...
@@ -1335,7 +1335,8 @@ class ObjectDetectionEvaluation(object):
average_precision
=
metrics
.
compute_average_precision
(
average_precision
=
metrics
.
compute_average_precision
(
precision_within_bound
,
recall_within_bound
)
precision_within_bound
,
recall_within_bound
)
self
.
average_precision_per_class
[
class_index
]
=
average_precision
self
.
average_precision_per_class
[
class_index
]
=
average_precision
logging
.
info
(
'average_precision: %f'
,
average_precision
)
logging
.
info
(
'class %d average_precision: %f'
,
class_index
,
average_precision
)
self
.
corloc_per_class
=
metrics
.
compute_cor_loc
(
self
.
corloc_per_class
=
metrics
.
compute_cor_loc
(
self
.
num_gt_imgs_per_class
,
self
.
num_gt_imgs_per_class
,
...
...
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