According to documentation tf.image.convert_image_dtype "Images that are represented using floating point values are expected to have values in the range [0,1)."
But in the keras tutorial(https://keras.io/examples/vision/cutmix/) i have seen the following preprocessing function:
def preprocess_image(image, label):
image = tf.image.resize(image, (IMG_SIZE, IMG_SIZE))
image = tf.image.convert_image_dtype(image, tf.float32) / 255.0
return image, label
My question is: why did they divide by 255, when tf.image.convert_image_dtype already did that job?