text_plain_output_1.png
from tensorflow.keras.preprocessing.image import ImageDataGenerator

train_directory = '../input/100-bird-species/train'
val_directory = '../input/100-bird-species/valid'
test_directory = '../input/100-bird-species/test'

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

train_generator = train_datagen.flow_from_directory(train_directory, target_size=(224, 224), batch_size=32, color_mode='rgb', class_mode='sparse')
validation_generator = train_datagen.flow_from_directory(val_directory, target_size=(224, 224), batch_size=32, color_mode='rgb', class_mode='sparse')
test_generator = test_datagen.flow_from_directory(test_directory, target_size=(224, 224), batch_size=32, color_mode='rgb', class_mode='sparse')