I want to increase the amount of data in real time by combining various image transformation operators in a tensor stream. My code starts by decoding images, and then various transformations are performed, but it throws ValueError('\'image\' must be fully defined.'). Here is an example to reproduce this error:
def decode_and_augment(image_raw):
decoded = tf.image.decode_jpeg(image_raw)
flipped = tf.image.random_flip_left_right(decoded)
return flipped
source
share