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 b6866ca commit a305455Copy full SHA for a305455
research/compression/image_encoder/msssim.py
@@ -199,9 +199,9 @@ def main(_):
199
return
200
201
with tf.gfile.FastGFile(FLAGS.original_image) as image_file:
202
- img1_str = image_file.read()
+ img1_str = image_file.read('rb')
203
with tf.gfile.FastGFile(FLAGS.compared_image) as image_file:
204
- img2_str = image_file.read()
+ img2_str = image_file.read('rb')
205
206
input_img = tf.placeholder(tf.string)
207
decoded_image = tf.expand_dims(tf.image.decode_png(input_img, channels=3), 0)
0 commit comments