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
dd983ea6
Commit
dd983ea6
authored
Apr 03, 2017
by
Mahmoud Lababidi
Committed by
Neal Wu
Apr 04, 2017
Browse files
add binary to file reading
parent
275f1446
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 @
dd983ea6
...
@@ -198,7 +198,7 @@ def _process_image(filename, coder):
...
@@ -198,7 +198,7 @@ def _process_image(filename, coder):
width: integer, image width in pixels.
width: integer, image width in pixels.
"""
"""
# Read the image file.
# 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
()
image_data
=
f
.
read
()
# Convert any PNG to JPEG's for consistency.
# 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