我正在使用Theano和Keras在Python中创建一个CNN。我希望只需使用Python打印卷积层和池化层后的图像大小。我使用的是cifar10数据集,其大小为(3, 32, 32),我想知道图像大小减少了多少。
image = X_train[1]
print(image.shape)
使用Theano后端。
(3, 32, 32)
我正在使用Theano和Keras在Python中创建一个CNN。我希望只需使用Python打印卷积层和池化层后的图像大小。我使用的是cifar10数据集,其大小为(3, 32, 32),我想知道图像大小减少了多少。
image = X_train[1]
print(image.shape)
(3, 32, 32)
keras.models.Model(input=my_input_layer,output=my_last_layer).summary()
这有帮助吗?