tensorflow - 我训练了一个神经网络,但我找不到它的保存位置,我找不到任何 .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 时,我找不到它。
我对此很陌生。这是我在深度学习方面的第一次尝试。
解决方案
首先,您所说的“保存位置”是指日志、训练模型或权重。
在您的情况下,您只是将权重存储在给定的检查点,因此您可以在教程中所述的给定路径访问它们
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 回调。
觉得有用别忘了点赞
推荐阅读
- python - 如何将 csv 行导出到单独的 .txt 文件中
- pytorch - 使用由另一个函数计算的权重计算卷积
- php - 是否可以从文件开头读取一定数量的数字后的一定数量的字符
- java - 正则表达式 - 在第一次匹配后获取第二个单词
- reactjs - 如何从组件内更新路由器
- html - 媒体查询最大宽度不能包容地工作
- reactjs - 当服务器请求挂起时,禁用下拉选择
- python - 使用 pyinstaller 创建 exe 时找不到名为“PyQt5”的模块
- python - 如何使用 python 的 get() 方法在字典中获取两个键的级别?
- html - 从哪里开始过滤用户的输入以给出结果