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
32e5754c
Commit
32e5754c
authored
Apr 08, 2018
by
wonderit
Browse files
fix typo
parent
cffaa589
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/deeplab/eval.py
research/deeplab/eval.py
+1
-1
No files found.
research/deeplab/eval.py
View file @
32e5754c
...
@@ -126,7 +126,7 @@ def main(unused_argv):
...
@@ -126,7 +126,7 @@ def main(unused_argv):
weights
=
tf
.
to_float
(
tf
.
not_equal
(
labels
,
dataset
.
ignore_label
))
weights
=
tf
.
to_float
(
tf
.
not_equal
(
labels
,
dataset
.
ignore_label
))
# Set ignore_label regions to label 0, because metrics.mean_iou requires
# Set ignore_label regions to label 0, because metrics.mean_iou requires
# range of labels = [0, dataset.num_classes). Note the ignore_lab
l
e regions
# range of labels = [0, dataset.num_classes). Note the ignore_labe
l
regions
# are not evaluated since the corresponding regions contain weights = 0.
# are not evaluated since the corresponding regions contain weights = 0.
labels
=
tf
.
where
(
labels
=
tf
.
where
(
tf
.
equal
(
labels
,
dataset
.
ignore_label
),
tf
.
zeros_like
(
labels
),
labels
)
tf
.
equal
(
labels
,
dataset
.
ignore_label
),
tf
.
zeros_like
(
labels
),
labels
)
...
...
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