Why do we need to pre-process image datasets?

Advertisements Refer to this Complete guide on How to use Autoencoders in Python Notice the author add: x_train = x_train.astype(‘float32’) / 255. x_test = x_test.astype(‘float32’) / 255. x_train = x_train.reshape((len(x_train), np.prod(x_train.shape[1:]))) x_test = x_test.reshape((len(x_test), np.prod(x_test.shape[1:]))) after they loaded the MNIST data. Why do they divide the image data by 255? And why 255? After that… Read More Why do we need to pre-process image datasets?