We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4c66b commit 5d854ddCopy full SHA for 5d854dd
research/compression/image_encoder/encoder.py
@@ -59,7 +59,7 @@ def main(_):
59
print('\n--iteration must be between 0 and 15 inclusive.\n')
60
return
61
62
- with tf.gfile.FastGFile(FLAGS.input_image) as input_image:
+ with tf.gfile.FastGFile(FLAGS.input_image, 'rb') as input_image:
63
input_image_str = input_image.read()
64
65
with tf.Graph().as_default() as graph:
0 commit comments