import tensorflow as tf
image = tf.gfile.FastGFile("./01.png",'r').read()
程序报错为:UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x89 in position 0: invalid start byte
只需将‘r’改为’rb’即可
import tensorflow as tf
image = tf.gfile.FastGFile("./01.png",'r').read()
程序报错为:UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x89 in position 0: invalid start byte
只需将‘r’改为’rb’即可