I am trying to classify CIFAR10 images using pre-trained imagenet weights for the Inception v3. I am using the following code.
from keras.applications.inception_v3 import InceptionV3
(xtrain, ytrain), (xtest, ytest) = cifar10.load_data()
input_cifar = Input(shape=(32, 32, 3))
base_model = InceptionV3(weights='imagenet',
include_top=False,
input_tensor=input_cifar)
But it gives me an error like 'Negative dimension' at an intermediate conv layer.
This does not happen when I use VGG16 network.
I am using keras with tensorflow backend and tf dim ordernig.