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

import pandas as pd

sub = pd.read_csv('../input/cassava-leaf-disease-classification/sample_submission.csv')
train = pd.read_csv('../input/cassava-leaf-disease-classification/train.csv')
train['label'] = train['label'].astype('str')

train_datagen = ImageDataGenerator(rescale=1.0 / 255, shear_range=0.2, zoom_range=0.2, horizontal_flip=True)
train_data = train_datagen.flow_from_dataframe(dataframe=train, directory='../input/cassava-leaf-disease-classification/train_images', x_col='image_id', y_col='label', batch_size=16, target_size=(150, 150))
validation_data = train_datagen.flow_from_dataframe(dataframe=train, directory='../input/cassava-leaf-disease-classification/train_images', x_col='image_id', y_col='label', batch_size=16, target_size=(150, 150))