Keras Maxpooling2d layer gives ValueError

后端 未结 7 1716
难免孤独
难免孤独 2021-02-07 00:10

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         


        
相关标签:
7条回答
  • 2021-02-07 00:56

    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)

    0 讨论(0)
提交回复
热议问题