解决 keras 首次装载预训练模型VGG16 时下载失败问题
解决:Exception: URL fetch failure on https://storage.googleapis.com/tensorflow/keras-applications/vgg16/vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5: None -- [Errno 104] Connection reset by peer
解决方案:
1、先将数据集单独下载下来:
2、将其复制到 ~/.keras/models 目录下(如没有models目录,请先创建):
cp vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5 ~/.keras/models