image_output_1.png
from keras.applications.resnet50 import preprocess_input

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

train_path = '/kaggle/input/signature/signature/Train/'
test_path = '/kaggle/input/signature/signature/Test/'

train_datagen = ImageDataGenerator(shear_range=10, zoom_range=0.2, horizontal_flip=True, preprocessing_function=preprocess_input)
train_generator = train_datagen.flow_from_directory(train_path, batch_size=32, class_mode='binary', target_size=(224, 224))
test_datagen = ImageDataGenerator(preprocessing_function=preprocess_input)
test_generator = test_datagen.flow_from_directory(test_path, shuffle=False, class_mode='binary', target_size=(224, 224))