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

import pandas as pd

train_dir = '/kaggle/input/hackerearth/dataset/Train Images'
test_dir = '/kaggle/input/hackerearth/dataset/Test Images'

train = pd.read_csv('/kaggle/input/hackerearth/dataset/train.csv')

test = pd.read_csv('/kaggle/input/hackerearth/dataset/test.csv')

test_datagen = ImageDataGenerator(rescale=1.0 / 255.0)
SIZE = (150, 150, 3)
test_generator = test_datagen.flow_from_dataframe(test, directory=test_dir, x_col='Image', y_col=None, class_mode=None, target_size=(150, 150))