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
eb956456
Commit
eb956456
authored
Apr 07, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 440164472
parent
510e763c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/vision/tasks/semantic_segmentation.py
official/vision/tasks/semantic_segmentation.py
+1
-1
No files found.
official/vision/tasks/semantic_segmentation.py
View file @
eb956456
...
@@ -166,7 +166,7 @@ class SemanticSegmentationTask(base_task.Task):
...
@@ -166,7 +166,7 @@ class SemanticSegmentationTask(base_task.Task):
**kwargs: other args.
**kwargs: other args.
"""
"""
for
metric
in
metrics
:
for
metric
in
metrics
:
if
'mask_scores_mse'
is
metric
.
name
:
if
'mask_scores_mse'
==
metric
.
name
:
actual_mask_scores
=
segmentation_losses
.
get_actual_mask_scores
(
actual_mask_scores
=
segmentation_losses
.
get_actual_mask_scores
(
model_outputs
[
'logits'
],
labels
[
'masks'
],
model_outputs
[
'logits'
],
labels
[
'masks'
],
self
.
task_config
.
losses
.
ignore_label
)
self
.
task_config
.
losses
.
ignore_label
)
...
...
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