如何将图像传输到任意大小的图像生成器?在target_size中需要指定什么?
我尝试过:
train_datagen = ImageDataGenerator(rescale=1./255, validation_split=0.1)
train_generator = train_datagen.flow_from_directory(train_img_dir, target_size=(None, None), batch_size=32, class_mode='categorical', subset='training')
谢谢!