Skip to content

Commit

Permalink
Un-revert build_image_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nealwu committed Apr 10, 2017
1 parent e46cbff commit 7df4119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inception/inception/data/build_image_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, 'rb') as f:
image_data = f.read()

# Convert any PNG to JPEG's for consistency.
Expand Down

0 comments on commit 7df4119

Please sign in to comment.