简体   繁体   English

VGG16在磁盘中的位置

[英]VGG16 location in disk

i can't download the VGG16 model via jupyter notebook because it always reset the connection. 我无法通过jupyter笔记本电脑下载VGG16模型,因为它始终会重置连接。 so i decided download it via url buat i don't know how to call the weight to my model. 所以我决定通过url buat下载它,我不知道如何调用模型的权重。 what should i do? 我该怎么办? im very new to this topics. 我对这个主题非常陌生。

  [1]: http://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weights_tf_dim_ordering_tf_kernels.h5

this is the code to call in my model 这是我模型中要调用的代码

vgg16 = keras.applications.vgg16.VGG16()

As given in the FAQs , all keras data is stored in ~/.keras/ . 常见问题解答所述 ,所有keras数据都存储在~/.keras/ By default, Keras models are stored in ~/.keras/models/ . 默认情况下,Keras模型存储在~/.keras/models/ Just move your downloaded weights to this folder and your code should work fine. 只需将下载的权重移动到此文件夹,您的代码就可以正常工作。 Please note that the name of the file should be the same as given in the download url. 请注意,文件名应与下载网址中提供的名称相同。 In this case it is: vgg16_weights_tf_dim_ordering_tf_kernels.h5 . 在这种情况下,它是: vgg16_weights_tf_dim_ordering_tf_kernels.h5

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM