def tf_read_raw(image_path): image = tf.image.decode_png(tf.read_file(image_path), dtype = tf.uint16) return tf.expand_dims(image, 0)