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
44b4088c
Commit
44b4088c
authored
Jul 06, 2022
by
Jiageng Zhang
Committed by
A. Unique TensorFlower
Jul 06, 2022
Browse files
Internal change
PiperOrigin-RevId: 459374753
parent
eedfa888
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
official/vision/evaluation/panoptic_quality_evaluator.py
official/vision/evaluation/panoptic_quality_evaluator.py
+11
-1
No files found.
official/vision/evaluation/panoptic_quality_evaluator.py
View file @
44b4088c
...
@@ -181,4 +181,14 @@ class PanopticQualityEvaluator:
...
@@ -181,4 +181,14 @@ class PanopticQualityEvaluator:
self
.
_pq_metric_module
.
compare_and_accumulate
(
self
.
_pq_metric_module
.
compare_and_accumulate
(
groundtruths_
,
predictions_
)
groundtruths_
,
predictions_
)
else
:
else
:
self
.
_pq_metric_module
.
compare_and_accumulate
(
groundtruths
,
predictions
)
for
idx
in
range
(
len
(
groundtruths
[
'category_mask'
])):
groundtruths_
=
{
'category_mask'
:
groundtruths
[
'category_mask'
][
idx
],
'instance_mask'
:
groundtruths
[
'instance_mask'
][
idx
]
}
predictions_
=
{
'category_mask'
:
predictions
[
'category_mask'
][
idx
],
'instance_mask'
:
predictions
[
'instance_mask'
][
idx
]
}
self
.
_pq_metric_module
.
compare_and_accumulate
(
groundtruths_
,
predictions_
)
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