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
9d5a1a76
"tests/vscode:/vscode.git/clone" did not exist on "a6be18fb5280472cb7336ceffd13f8aa03764c6a"
Commit
9d5a1a76
authored
Sep 22, 2021
by
Fan Yang
Committed by
A. Unique TensorFlower
Sep 22, 2021
Browse files
Internal change.
PiperOrigin-RevId: 398264305
parent
390c7a93
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
official/vision/beta/projects/volumetric_models/evaluation/segmentation_metrics.py
...ects/volumetric_models/evaluation/segmentation_metrics.py
+1
-0
official/vision/beta/projects/volumetric_models/tasks/semantic_segmentation_3d.py
...jects/volumetric_models/tasks/semantic_segmentation_3d.py
+2
-0
No files found.
official/vision/beta/projects/volumetric_models/evaluation/segmentation_metrics.py
View file @
9d5a1a76
...
...
@@ -133,3 +133,4 @@ class DiceScore:
if
self
.
_per_class_metric
:
for
class_id
in
range
(
self
.
_num_classes
):
self
.
_dice_scores_per_class
[
class_id
]
=
tf
.
Variable
(
0.0
)
self
.
_count_per_class
[
class_id
]
=
tf
.
Variable
(
0.0
)
official/vision/beta/projects/volumetric_models/tasks/semantic_segmentation_3d.py
View file @
9d5a1a76
...
...
@@ -342,4 +342,6 @@ class SemanticSegmentation3DTask(base_task.Task):
metric_name
=
self
.
metrics
[
0
].
name
+
'/class_{0}'
.
format
(
i
-
1
)
if
i
>
0
else
self
.
metrics
[
0
].
name
result
.
update
({
metric_name
:
metric_val
})
else
:
result
.
update
({
self
.
metrics
[
0
].
name
:
metric
})
return
result
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