170718 Keras.applications.models权重在线加载中断问题的解决办法

这里写图片描述

由于网速慢或网络中断原因导致keras加载vgg16等模型权重失败,
导致无法使用,对于这个问题的直接解决方法是:删掉下载文件,再重新下载

Github方法:

这里写图片描述
Windows-weights路径

C:\Users\你的用户名\.keras\models

Linux-weights路径

.keras/models/
注意: linux中 带点号的文件都被隐藏了,需要查看hidden文件才能显示

Keras-Github-教程
https://github.com/fchollet/deep-learning-models
原始权重下载地址
https://github.com/fchollet/deep-learning-models/releases
tf模型权重百度云下载地址
http://pan.baidu.com/s/1dE9giOD

VGG16:

WEIGHTS_PATH =
https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weights_tf_dim_ordering_tf_kernels.h5
WEIGHTS_PATH_NO_TOP =
https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5

VGG19:

TF_WEIGHTS_PATH =
https://github.com/fchollet/deep-learning-models/releases/download/v0.4/xception_weights_tf_dim_ordering_tf_kernels.h5
TF_WEIGHTS_PATH_NO_TOP =
https://github.com/fchollet/deep-learning-models/releases/download/v0.4/xception_weights_tf_dim_ordering_tf_kernels_notop.h5

RESNET50:

WEIGHTS_PATH =
https://github.com/fchollet/deep-learning-models/releases/download/v0.2/resnet50_weights_tf_dim_ordering_tf_kernels.h5
WEIGHTS_PATH_NO_TOP =
https://github.com/fchollet/deep-learning-models/releases/download/v0.2/resnet50_weights_tf_dim_ordering_tf_kernels_notop.h5

INCEPTIONS_V3:

WEIGHTS_PATH =
https://github.com/fchollet/deep-learning-models/releases/download/v0.5/inception_v3_weights_tf_dim_ordering_tf_kernels.h5
WEIGHTS_PATH_NO_TOP =
https://github.com/fchollet/deep-learning-models/releases/download/v0.5/inception_v3_weights_tf_dim_ordering_tf_kernels_notop.h5

XCEPTION:

TF_WEIGHTS_PATH =
https://github.com/fchollet/deep-learning-models/releases/download/v0.4/xception_weights_tf_dim_ordering_tf_kernels.h5
TF_WEIGHTS_PATH_NO_TOP =
https://github.com/fchollet/deep-learning-models/releases/download/v0.4/xception_weights_tf_dim_ordering_tf_kernels_notop.h5

  • 9
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 10
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

GuokLiu

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值