def reverse_preprocessing(image): image = tf.multiply(image, 0.5) image = tf.add(image, 0.5) return image