When I return an image loaded with tf.keras.utils.image_dataset_from_directory as an array, the array is not identical to the array returned from tf.keras.utils.load_img. Why is this happening? I am setting image size to the original size of the image, so there should be no preprocessing going on.
I have also tried loading the image with PIL and cv2, and get the same result as tf.keras.utils.load_img.