I am trying to augment my MNIST dataset in keras but for some reason its not working. Any help will be appreciated.
Part of the code:
x_train = x_train.r
The dense_218_input should be a numpy 2d-array instead of shape: (512, 28, 28, 1). You can reshape it with numpy.reshape.
dense_218_input