This repository was archived by the owner on Nov 3, 2022. It is now read-only.

Description
MobileNetV2 has 1 / 32 output stride if include_top=False. It should work with input shapes that are a multiple of 32.
from keras.applications.mobilenet_v2 import MobileNetV2
from keras.applications.resnet50 import ResNet50
input_shape = (224, 448, 3)
# this works
resnet = ResNet50(input_shape=input_shape, weights='imagenet', include_top=False)
# raises ValueError
try:
mobilenet = MobileNetV2(input_shape=input_shape, weights='imagenet', include_top=False)
except ValueError as e:
print(e)