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
c59cf48d
Commit
c59cf48d
authored
Nov 13, 2019
by
Yukun Zhu
Committed by
aquariusjay
Nov 13, 2019
Browse files
Fix typo in train.py (#7805)
Thanks to issue raised at
https://github.com/tensorflow/models/issues/7799
parent
61aee86e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/deeplab/train.py
research/deeplab/train.py
+1
-1
No files found.
research/deeplab/train.py
View file @
c59cf48d
...
@@ -342,7 +342,7 @@ def main(unused_argv):
...
@@ -342,7 +342,7 @@ def main(unused_argv):
first_clone_label
=
graph
.
get_tensor_by_name
(
first_clone_label
=
graph
.
get_tensor_by_name
(
(
'%s/%s:0'
%
(
first_clone_scope
,
common
.
LABEL
)).
strip
(
'/'
))
(
'%s/%s:0'
%
(
first_clone_scope
,
common
.
LABEL
)).
strip
(
'/'
))
# Scale up summary image pixel values for better visualization.
# Scale up summary image pixel values for better visualization.
pixel_scaling
=
max
(
1
,
255
//
dataset
.
num_classes
)
pixel_scaling
=
max
(
1
,
255
//
dataset
.
num_
of_
classes
)
summary_label
=
tf
.
cast
(
first_clone_label
*
pixel_scaling
,
tf
.
uint8
)
summary_label
=
tf
.
cast
(
first_clone_label
*
pixel_scaling
,
tf
.
uint8
)
summaries
.
add
(
summaries
.
add
(
tf
.
summary
.
image
(
'samples/%s'
%
common
.
LABEL
,
summary_label
))
tf
.
summary
.
image
(
'samples/%s'
%
common
.
LABEL
,
summary_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