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
4fb2e0cc
Commit
4fb2e0cc
authored
Aug 24, 2017
by
Oier Mees
Browse files
fixes voxel IOU evaluation
parent
a380b4b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ptn/metrics.py
ptn/metrics.py
+2
-2
No files found.
ptn/metrics.py
View file @
4fb2e0cc
...
@@ -99,8 +99,8 @@ def add_volume_iou_metrics(inputs, outputs):
...
@@ -99,8 +99,8 @@ def add_volume_iou_metrics(inputs, outputs):
names_to_updates
=
dict
()
names_to_updates
=
dict
()
labels
=
tf
.
greater_equal
(
inputs
[
'voxels'
],
0.5
)
labels
=
tf
.
greater_equal
(
inputs
[
'voxels'
],
0.5
)
predictions
=
tf
.
greater_equal
(
outputs
[
'voxels_1'
],
0.5
)
predictions
=
tf
.
greater_equal
(
outputs
[
'voxels_1'
],
0.5
)
labels
=
2
-
tf
.
to_int32
(
labels
)
labels
=
(
2
-
tf
.
to_int32
(
labels
)
)
-
1
predictions
=
3
-
tf
.
to_int32
(
predictions
)
*
2
predictions
=
(
3
-
tf
.
to_int32
(
predictions
)
*
2
)
-
1
tmp_values
,
tmp_updates
=
tf
.
metrics
.
mean_iou
(
tmp_values
,
tmp_updates
=
tf
.
metrics
.
mean_iou
(
labels
=
labels
,
labels
=
labels
,
predictions
=
predictions
,
predictions
=
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