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
6fb5646f
Commit
6fb5646f
authored
Jan 03, 2020
by
Jason421
Committed by
aquariusjay
Jan 02, 2020
Browse files
Fix multi scale prediction bug (#8000)
parent
7ae6bfdd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/deeplab/model.py
research/deeplab/model.py
+1
-1
No files found.
research/deeplab/model.py
View file @
6fb5646f
...
@@ -162,7 +162,7 @@ def predict_labels_multi_scale(images,
...
@@ -162,7 +162,7 @@ def predict_labels_multi_scale(images,
# Compute average prediction across different scales and flipped images.
# Compute average prediction across different scales and flipped images.
predictions
=
tf
.
reduce_mean
(
tf
.
concat
(
predictions
,
4
),
axis
=
4
)
predictions
=
tf
.
reduce_mean
(
tf
.
concat
(
predictions
,
4
),
axis
=
4
)
outputs_to_predictions
[
output
]
=
tf
.
argmax
(
predictions
,
3
)
outputs_to_predictions
[
output
]
=
tf
.
argmax
(
predictions
,
3
)
predictions
[
output
+
PROB_SUFFIX
]
=
tf
.
nn
.
softmax
(
predictions
)
outputs_to_
predictions
[
output
+
PROB_SUFFIX
]
=
tf
.
nn
.
softmax
(
predictions
)
return
outputs_to_predictions
return
outputs_to_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