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
74ecea0d
Commit
74ecea0d
authored
Feb 05, 2021
by
Fan Yang
Committed by
A. Unique TensorFlower
Feb 05, 2021
Browse files
Internal change
PiperOrigin-RevId: 355946044
parent
de14103c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
official/vision/beta/evaluation/segmentation_metrics.py
official/vision/beta/evaluation/segmentation_metrics.py
+1
-2
No files found.
official/vision/beta/evaluation/segmentation_metrics.py
View file @
74ecea0d
...
...
@@ -44,7 +44,7 @@ class MeanIoU(tf.keras.metrics.MeanIoU):
num_classes
=
num_classes
,
name
=
name
,
dtype
=
dtype
)
def
update_state
(
self
,
y_true
,
y_pred
):
"""Updates metic state.
"""Updates met
r
ic state.
Args:
y_true: `dict`, dictionary with the following name, and key values.
...
...
@@ -122,4 +122,3 @@ class MeanIoU(tf.keras.metrics.MeanIoU):
super
(
MeanIoU
,
self
).
update_state
(
flatten_masks
,
flatten_predictions
,
tf
.
cast
(
flatten_valid_masks
,
tf
.
float32
))
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