image_raw_data = tf.gfile.FastGFile("../datasets/cat.jpg", "r").read()
改为,二进制读:
image_raw_data = tf.gfile.FastGFile("../datasets/cat.jpg", "rb").read()
image_raw_data = tf.gfile.FastGFile("../datasets/cat.jpg", "r").read()
改为,二进制读:
image_raw_data = tf.gfile.FastGFile("../datasets/cat.jpg", "rb").read()