text_plain_output_1.png
from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array

train_path = '../input/100-bird-species/285 birds/train'
test_path = '../input/100-bird-species/285 birds/test'
validation_path = '../input/100-bird-species/285 birds/valid'

train_datagen = ImageDataGenerator(rescale=1 / 255)
validation_datagen = ImageDataGenerator(rescale=1 / 255)
test_datagen = ImageDataGenerator(rescale=1 / 255)

batch_size = 256
train_datagen = ImageDataGenerator(rescale=1 / 255, shear_range=0.3, horizontal_flip=True, zoom_range=0.3)
val_datagen = ImageDataGenerator(rescale=1 / 255)
train_generator = train_datagen.flow_from_directory(train_path, target_size=(224, 224), batch_size=batch_size, color_mode='rgb', class_mode='categorical')
val_generator = val_datagen.flow_from_directory(validation_path, target_size=(224, 224), batch_size=batch_size, color_mode='rgb', class_mode='categorical')