Unsuccessful TensorSliceReader constructor: Failed to get matching files
来源:互联网 发布:库存表软件 编辑:程序博客网 时间:2024/06/05 21:14
在训练分布式 tensorflow 时遇到问题:
W tensorflow/core/framework/op_kernel.cc:975] Invalid argument: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /tmp/train_logs/model.ckpt-1: Not found: /tmp/train_logs
说是没有找到 /tmp/train_logs 目录,加载不到文件,但是路径和文件名没有错,去目录下查找也有文件
出错的一句是
sv = tf.train.Supervisor(is_chief=(FLAGS.task_index == 0), logdir="/tmp/train_logs", init_op=init_op, summary_op=summary_op, saver=saver, global_step=global_step, save_model_secs=600)
解决:https://github.com/tensorflow/tensorflow/issues/6082
@ppwwyyxx
Could you try the following:
- use a model name without the character
[]
, and: - when you tried to restore, use the full relative path
./model_epoch10
rather thanmodel_epoch10
If my guess is right then you should see it work. It it doesn't, could you give the steps so that people can reproduce the problem (i.e. how to use your code).
最后我在当前目录下新建了一个目录 checkpoint ,然后将文件中出错的一句改为:
sv = tf.train.Supervisor(is_chief=(FLAGS.task_index == 0), logdir="./checkpoint/", init_op=init_op, summary_op=summary_op, saver=saver, global_step=global_step, save_model_secs=600)
0 0
- Unsuccessful TensorSliceReader constructor: Failed to get matching files
- Tensorflow :Unsuccessful TensorSliceReader constructor: Failed to find any matching files
- apt-get update报错 Failed to fetch bzip2 Some index files failed to download
- 完美解决Unable to locate package、 files failed to download、fail to fatch;not get lock
- ubuntu: apt-get update的时候遇到“E: Some index files failed to download”错误
- RaspberryPi sudo apt-get update "E: Some index files failed to download..."
- the working copy"" failed to commit files.
- Extjs 打包 failed to find any files
- The working copy "" failed to commit files
- The working copy “***” failed to commit files.
- How to get Android local files URI
- Constructor argument type matching
- Failed to instantiate * using constructor public * with arguments **
- ubuntu apt-get update 失败,some index files failed
- Failed to locate or generate matching signing assets Xcode attempted to locate or generate matching
- 错误:Failed to locate or generate matching signing assets
- Archives时 :Failed to locate or generate matching signing assets:
- Constructor argument with object matching
- react native 填坑之image uri 必须指定图片大小
- dp 入门 hdu 1231
- idea及常用快捷键使用
- 苹果收购以色列人脸识别创业公司RealFace
- 左旋转字符串。。。rotate()
- Unsuccessful TensorSliceReader constructor: Failed to get matching files
- Html中label标签的用处
- 数组、List和ArrayList的区别
- Android超过Windows成为网络第一操作系统
- fibonacii数列(斐波那契数列)的递归实现及循环实现
- 什么是IL
- 160
- 方法重写和方法重载的区别?this关键字和super关键字分别代表什么?
- Filter集锦 (Java web 过滤器)