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 5d854dd commit b6866caCopy full SHA for b6866ca
research/compression/image_encoder/decoder.py
@@ -71,7 +71,7 @@ def main(_):
71
return
72
73
contents = ''
74
- with tf.gfile.FastGFile(FLAGS.input_codes, 'r') as code_file:
+ with tf.gfile.FastGFile(FLAGS.input_codes, 'rb') as code_file:
75
contents = code_file.read()
76
loaded_codes = np.load(io.BytesIO(contents))
77
assert ['codes', 'shape'] not in loaded_codes.files
0 commit comments