首页 > 解决方案 > 我训练了一个神经网络,但我找不到它的保存位置,我找不到任何 .meta 、 .index 、 .data 文件

问题描述

我试图关注这个页面https://www.tensorflow.org/tutorials/sequences/audio_recognition

我成功执行了以下命令:

python tensorflow/examples/speech_commands/train.py

我在 Anaconda 中使用了一个虚拟环境。使用 TensorFlow 14 和 Python 3.6

训练它大约需要22小时。每 100 次迭代后显示“/tmp/speech_commands_train/conv.ckpt-100”(总共有 18000 次)

但是现在当我尝试查找 conv.ckpt-18000.meta 或仅是 speech_commands_train 时,我找不到它。

我对此很陌生。这是我在深度学习方面的第一次尝试。

培训结束时终端的外观

标签: tensorflowneural-networkdeep-learningspeech-recognition

解决方案


首先,您所说的“保存位置”是指日志、训练模型或权重。

在您的情况下,您只是将权重存储在给定的检查点,因此您可以在教程中所述的给定路径访问它们

I0730 16:54:41.813438 55030 train.py:252] Saving to "/tmp/speech_commands_train/conv.ckpt-100"

*This is saving out the current trained weights to a checkpoint file. If your training script gets interrupted, you can look for the last saved checkpoint and then restart the script with -*

您还可以使用文件写入器和模型存储日志,使用 save_model 或带有 logdir 的 tensorboard 回调。

觉得有用别忘了点赞


推荐阅读