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
0b8bfa84
Commit
0b8bfa84
authored
Mar 14, 2017
by
Neal Wu
Committed by
GitHub
Mar 14, 2017
Browse files
Merge pull request #1055 from snnn/master
Update download_and_convert_mnist.py for 1.0 and python3 compatibility
parents
3c50f47b
c6a9fd81
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
slim/datasets/download_and_convert_mnist.py
slim/datasets/download_and_convert_mnist.py
+1
-1
No files found.
slim/datasets/download_and_convert_mnist.py
View file @
0b8bfa84
...
@@ -125,7 +125,7 @@ def _add_to_tfrecord(data_filename, labels_filename, num_images,
...
@@ -125,7 +125,7 @@ def _add_to_tfrecord(data_filename, labels_filename, num_images,
png_string
=
sess
.
run
(
encoded_png
,
feed_dict
=
{
image
:
images
[
j
]})
png_string
=
sess
.
run
(
encoded_png
,
feed_dict
=
{
image
:
images
[
j
]})
example
=
dataset_utils
.
image_to_tfexample
(
example
=
dataset_utils
.
image_to_tfexample
(
png_string
,
'png'
,
_IMAGE_SIZE
,
_IMAGE_SIZE
,
labels
[
j
])
png_string
,
'png'
.
encode
()
,
_IMAGE_SIZE
,
_IMAGE_SIZE
,
labels
[
j
])
tfrecord_writer
.
write
(
example
.
SerializeToString
())
tfrecord_writer
.
write
(
example
.
SerializeToString
())
...
...
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