我正在使用keras ImageDataGenerator来获取:
从单个图像输入(实际上,它是串联的2个图像,因此大小为h x w x 6)
到多幅图像输出(2 h x w x 3图像,1 h x w x 1图像)。我想使用1.2M的128 x 128图像,但无法使用我以前的代码加载。
我未使用ImageDataGenerator的代码为:
input,output1,output2,output3 = LoadImages() #list of images
img_in = keras.Model.Input((None,None,6))
out1,out2,out3 = MyNetwork(img_in)
mynet = keras.Model.Model(inputs = img_in, outputs = [out1,out2,out3])
mynet.compile(...compile parameters)
mynet.fit(input,[output1,output2,output3],batch_size=32,shuffle=True,validation_split=0.05)
现在我正在研究如何使用,但无法获得所需配置的任何线索。 请教我如何做,非常感谢。