machine-learning - TensorFlow:训练好的模型存储在哪里以及如何访问?

标签 machine-learning tensorflow neural-network caffe

TensorFlow 在何处以及如何存储其模型(图)?它在 checkpoint 文件中吗?

我知道在Caffe中,模型存储在.caffemodel文件中,该文件用于在模型训练后部署(测试)模型。

我刚刚在这个 tutorial 中训练了模型,现在我的 /tmp/mnist_convnet_model 目录中有以下文件:

files

哪些文件包含实际模型?

例如,如果我想使用这个经过训练的模型对单个图像进行分类,则使用什么文件进行分类?

最佳答案

是的,该模型位于各个 checkpoint 文件中 - 尽管 *.ckpt 文件现在分为 data >索引文件。我不确定索引文件中有什么,但是 *.data* 文件包含权重和偏差值。 *.meta 文件包含图形:变量、数据结构、转换等。

Here是一个关于护理和喂养的很好的教程。

关于machine-learning - TensorFlow:训练好的模型存储在哪里以及如何访问?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44975922/

相关文章:

python - Keras图像分类: High accuracy shown but low on test images

tensorflow - 在 tensorflow 中我怎样才能获得最小值索引但除了零

python - tensorflow 不训练(只有偏见改变)

machine-learning - 我可以使用 `tf.nn.dropout`来实现DropConnect吗?

python - '值错误: Image with id {} already added' When Run Evaluation on OpenImage Dataset

python - 如何调整典型sk-learn数据挖掘方法的阈值以平衡精度和召回率?

machine-learning - 使用 flow_from_directory 测试数据给出 "Found 0 images in 0 classes"

machine-learning - 使用 k 均值聚类或关联规则的无监督学习的应用

tensorflow - 在分布式 tensorflow 中使用图间复制提高性能

java - 无法在 Java API 中运行 Tensorflow 预测