keras-team / keras-applications

Reference implementations of popular deep learning models.
Other
2k stars 914 forks source link

Pretrained weights for MobileNetV2 #169

Closed nixingyang closed 4 years ago

nixingyang commented 4 years ago

Summary

For the MobileNetV2 backbone, current implementation may download non-existing pretrained weights when using specific legitimate arguments. It should fall back to use the 224*224 pretrained weights which are available.

Environment

Logs or source codes for reproduction

from tensorflow.python.keras.applications import MobileNetV2

MobileNetV2(
    input_shape=(96, 96, 3),
    alpha=1.4,
    include_top=False,
    weights='imagenet'
)
Exception: URL fetch failure on https://github.com/JonathanCMitchell/mobilenet_v2_keras/releases/download/v1.1/mobilenet_v2_weights_tf_dim_ordering_tf_kernels_1.4_96_no_top.h5: 404 -- Not Found