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
7df41199
Commit
7df41199
authored
Apr 10, 2017
by
Neal Wu
Browse files
Un-revert build_image_data.py
parent
e46cbff3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
inception/inception/data/build_image_data.py
inception/inception/data/build_image_data.py
+1
-1
No files found.
inception/inception/data/build_image_data.py
View file @
7df41199
...
...
@@ -198,7 +198,7 @@ def _process_image(filename, coder):
width: integer, image width in pixels.
"""
# Read the image file.
with
tf
.
gfile
.
FastGFile
(
filename
,
'r'
)
as
f
:
with
tf
.
gfile
.
FastGFile
(
filename
,
'r
b
'
)
as
f
:
image_data
=
f
.
read
()
# Convert any PNG to JPEG's for consistency.
...
...
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