I am trying to replicate VGG16 model in keras, the following is my code:
model = Sequential() model.add(ZeroPadding2D((1,1),input_shape=(3,224,224))) model.add(C
i also encountered the same problem while loading a per-trained VGG model. so i just took the transpose of the test images. the actual command is given below:
kerasImage = kerasImage.transpose(1,2,0)