text_plain_output_1.png
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_data = ImageDataGenerator().flow_from_directory(train_path, target_size=(224, 224), class_mode='binary')
test_data = ImageDataGenerator().flow_from_directory(test_path, target_size=(224, 224), class_mode='binary')