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

import os

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

test_datagen_v2 = ImageDataGenerator(rescale=1.0 / 255)
test_dir = '../input/cassava-leaf-disease-classification/test_images/'
test = pd.DataFrame()
test['image_id'] = os.listdir('../input/cassava-leaf-disease-classification/test_images/')
test_generator = test_datagen_v2.flow_from_dataframe(test, directory=test_dir, x_col='image_id', target_size=(448, 448), batch_size=1, class_mode=None, shuffle=False)