image_raw_data = tf.gfile.FastGFile("15.jpg", "r").read()
为什么运行会报错?!求大神求解
错误信息:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
image_raw_data = tf.gfile.FastGFile("15.jpg", "r").read()
为什么运行会报错?!求大神求解
错误信息:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
2 回答4.3k 阅读✓ 已解决
2 回答867 阅读✓ 已解决
1 回答4.1k 阅读✓ 已解决
3 回答868 阅读✓ 已解决
2 回答2.2k 阅读✓ 已解决
4 回答2.6k 阅读
3 回答912 阅读✓ 已解决
用二进制模式
rb
而不是文本模式r