i want to apply data Augmentation on my dataset images ....i
have made list of images in form of numpy array ,float32 formate and
divided it into train(70%) and test(30%) section nad than passing this
train to " datagen.fit(X_train)",,,,but it is giving error ...
for X_batch, y_batch in datagen.flow(trainData, trainLabels, batch_size=3):
File "/usr/local/lib/python2.7/dist-packages/keras/preprocessing/image.py", line 475, in next
x = self.image_data_generator.random_transform(x.astype('float32'))
File "/usr/local/lib/python2.7/dist-packages/keras/preprocessing/image.py", line 346, in random_transform
fill_mode=self.fill_mode, cval=self.cval)
File "/usr/local/lib/python2.7/dist-packages/keras/preprocessing/image.py", line 109, in apply_transform
x = np.stack(channel_images, axis=0)
AttributeError: 'module' object has no attribute 'stack'