处理.tiff影像的时候,使用tensorflow的时候出现如下错误:
TypeError: Value passed to parameter 'input' has DataType uint8 not in list of allowed values: float16, bfloat16, float32, float64
解决办法是:
image = tf.image.decode_jpeg(...
image = tf.cast(image, tf.float32)