Resizing images in Keras ImageDataGenerator flow methods
问题 The Keras ImageDataGenerator class provides the two flow methods flow(X, y) and flow_from_directory(directory) (https://keras.io/preprocessing/image/). Why is the parameter target_size: tuple of integers, default: (256, 256). The dimensions to which all images found will be resized Only provided by flow_from_directory(directory) ? And what is the most concise way to add reshaping of images to the preprocessing pipeline using flow(X, y) ? 回答1: flow_from_directory(directory) generates augmented