I'm working with a dataset having a size of more than 30Gb, the problem is that the images(RGB) in the dataset aren't of the same dimension. As I'm implementing custom CNN I'll be required to give input_size for the first convolutional layer. Is there any way to add zero-padding generically. I've initially implemented a pre-trained model(ResNet-50) and used the following method
from tensorflow.keras.applications.resnet50 import preprocess_input
ImageDataGenerator(preprocess_input ,validation_split=0.2)
This made my dataset compatible with the model, is there any similar way where I can add zero-padding on the dataset but for a custom CNN model.