I am using Python with Keras and Tensorflow as backend and I want to use input images as small as possible for my model.
The VGG19 application says that it allows input shapes as low as 32 for width and height. A few weeks ago this minimum value was 48 on Keras website. I used it with 48 without problems. Now, I want to try the 32, but I cannot do it because I get:
ValueError: Input size must be at least 48x48; got `input_shape=(32, 32, 3)`
I mention that I updated Keras to the version 2.2.2 and I also deleted the weights model file I had for VGG19 (from ~/.keras/models/
). If I put the input_shape to (48, 48, 3), it downloads again the model, otherwise I get the error mentioned above.
In short, my code wants to just load the pre-trained model:
vgg_conv = VGG19(weights='imagenet', include_top=False, input_shape=(32, 32, 3))
Any idea to follow is appreciated.