I am facing the following issue with 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
which outputs
(384, 384, 3) and (?, ?, 3)
the central_crop()
function seems to lose information about the height and the width of the image tensor.
Why does this happen?
Tensorflow version: tensorflow 1.0.0, tensorflow-gpu 1.0.1