I\'m using ImageDataGenerator with flow_from_dataframe to load a dataset.
ImageDataGenerator allows you to specify a rescaling factor like this
datagen = I