我面临以下问题tf.image.central_crop()
def preprocessor(image):
image = tf.reshape(image, (IMAGE_HEIGHT, IMAGE_WIDTH, IMAGE_CHANNELS))
print(image.get_shape())
image = tf.image.central_crop(image,0.8)
print(image.get_shape())
return image
哪个输出
(384, 384, 3) and (?, ?, 3)
该central_crop()
函数似乎丢失了有关图像张量的高度和宽度的信息。为什么会这样?
Tensorflow version: tensorflow 1.0.0, tensorflow-gpu 1.0.1