# the image files are PNG, and therefore already sit beween 0 and 1. # However, if they were jpg you would need the Rescaling layer below. data_augmentation = Sequential([ preprocessing.RandomRotation(0.2), preprocessing.RandomFlip('horizontal'), preprocessing.RandomZoom(0.2), # preprocessing.Rescaling(1./255.), ], name='data_augmentation')
Hosted onDeepnote