Skip to content

Commit 5d854dd

Browse files
committed
Read image data as binary
1 parent 7e4c66b commit 5d854dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

research/compression/image_encoder/encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def main(_):
5959
print('\n--iteration must be between 0 and 15 inclusive.\n')
6060
return
6161

62-
with tf.gfile.FastGFile(FLAGS.input_image) as input_image:
62+
with tf.gfile.FastGFile(FLAGS.input_image, 'rb') as input_image:
6363
input_image_str = input_image.read()
6464

6565
with tf.Graph().as_default() as graph:

0 commit comments

Comments
 (0)