At the moment, the MobileNets models try to load the weights which for some input_shape do not exist (one example is illustrated in this issue). This PR is related to this one.
Suggested solution:
Weights for the default size of 224 are loaded if rows is different from cols or not in [128, 160, 192, 224] for MobileNet_v1.
Weights for the default size of 224 are loaded if rows is different from cols or not in [96, 128, 160, 192, 224] for MobileNet_v2.
At the moment, the MobileNets models try to load the weights which for some input_shape do not exist (one example is illustrated in this issue). This PR is related to this one.
Suggested solution: Weights for the default size of 224 are loaded if
rows
is different fromcols
or not in [128, 160, 192, 224] for MobileNet_v1. Weights for the default size of 224 are loaded ifrows
is different fromcols
or not in [96, 128, 160, 192, 224] for MobileNet_v2.