加载resnet101模型报错
mynet = tf.keras.applications.ResNet101(
include_top=False, weights="imagenet", input_tensor=None,
input_shape=(32,32,3), pooling=None, classes=10
)
Exception: URL fetch failure on https://storage.googleapis.com/tensorflow/keras-applications/resnet/resnet101_weights_tf_dim_ordering_tf_kernels_notop.h5: 404 -- Not Found
解决方法
这时候需要手动下载模型,然后放入指定位置。
将下载好的模型放到 /home/user1/.keras/models/ 目录中即可
参考:
https://blog.csdn.net/qxqxqzzz/article/details/109347890