简体   繁体   English

哪个文件包含我的深度学习保存的模型?

[英]which file contains my deep learning saved model?


I have trained a deep learning model using tensorflow and i saved it as an "cnn.h5" file using keras. 我已经使用tensorflow训练了深度学习模型,并使用keras将其保存为“ cnn.h5”文件。 Now I have 3 files that have "cnn.h5" in their name but all of them contain a different extension. 现在,我有3个文件名为“ cnn.h5”,但所有文件都包含不同的扩展名。
The three files are: 这三个文件是:
cnn.h5.meta cnn.h5.meta
cnn.h5.index cnn.h5.index
CNN.h5.data-00000-of-00001 CNN.h5.data 00000-的-00001

now can anyone tell me which one of the above files is the saved model? 现在谁能告诉我以上哪个文件是保存的模型? i have to load that model in my GUI for testing. 我必须在我的GUI中加载该模型以进行测试。
Thanks. 谢谢。

This blog post explains saving and restoring you can refer to it for details a snippet of explanation for the type of saved files is as below. 这篇博客文章解释了保存和还原,您可以参考它的详细信息,有关保存文件类型的解释摘录如下。

When saving the model, you'll notice that it takes 4 types of files to save it: 保存模型时,您会注意到它需要4种类型的文件来保存它:

".meta" files: containing the graph structure “ .meta”文件:包含图形结构

".data" files: containing the values of variables “ .data”文件:包含变量的值

".index" files: identifying the checkpoint “ .index”文件:标识检查点

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

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