Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
457 B
0
Indexable
Never
train_datagen = ImageDataGenerator(
                    rescale = 1/255,
                    shear_range = 0.2,
                    zoom_range = 0.2,
                    horizontal_flip = True,
                    vertical_flip = False)
training_set = train_datagen.flow_from_directory(train_path,
                                                 target_size = (150, 150),
                                                 class_mode = 'categorical')