Keras ImageDataGenerator for Cloud ML Engine
问题 I need to train a neural net fed by some raw images that I store on the GCloud Storage. To do that I’m using the flow_from_directory method of my Keras image generator to find all the images and their related labels on the storage. training_data_directory = args.train_dir testing_data_directory = args.eval_dir training_gen = datagenerator.flow_from_directory( training_data_directory, target_size = (img_width, img_height), batch_size = 32) validation_gen = basic_datagen.flow_from_directory(