load jpeg with tensorflow-FIFOQueue '_1_input_producer' is closed and has insufficient elements()
来源:互联网 发布:香港衰落 知乎 编辑:程序博客网 时间:2024/06/06 05:35
tensorflow加载jpeg图片时报错OutOfRangeError (see above for traceback): FIFOQueue '_1_input_producer' is closed and has insufficient elements (requested 1, current size 0) [[Node: ReaderReadV2 = ReaderReadV2[_device="/job:localhost/replica:0/task:0/cpu:0"](WholeFileReaderV2, input_producer)]]
1.将decode_jpg(image_file)改为decode_image(image_file,channels=3)错误依旧
2.查找资料后终于找到解决办法:因为局部变量(local variables)没有初始化,将初始化变量语句改为
全局变量初始化:tf.global_variables_initializer().run()
局部变量初始化:tf.local_variables_initializer().run()
阅读全文
1 0
- load jpeg with tensorflow-FIFOQueue '_1_input_producer' is closed and has insufficient elements()
- FIFOQueue '_4_batch_processing/batch_join/fifo_queue' is closed and has insu
- OutOfRangeError closed and has insufficient elements (requested 512, current size 362)
- What is Baseline JPEG and Progressive JPEG?
- TensorFlow学习--tf.FIFOQueue队列
- is-a And has-a
- missing Load plugin [closed]
- Combining Images with Photoshop Elements: Selecting, Layering, Masking, and Compositing
- What is the difference between Full load and Incremental load
- Installing ImageMagick with JPEG, TIFF and PNG Support
- 完美解决WebSocket 服务器 The WebSocket session [0] has been closed and no method...异常信息
- 解决WebSocket 服务器 The WebSocket session [0] has been closed and no method...异常信息
- A functional example for save and load model from Tensorflow
- ImportError: The Python Imaging Library (PIL) is required to load data from jpeg files
- tensorflow--Not a JPEG file: starts with 0x89 0x50
- ResultSet is closed!
- ResultSet is closed
- BufferedInputStream is closed
- Qt
- 35个Java代码性能优化总结
- 2017南宁网络赛M.Frequent Subsets Problem (状态压缩)
- 有时需要把析构函数设置为虚函数虚函数
- Ruby学习笔记(03)_变量
- load jpeg with tensorflow-FIFOQueue '_1_input_producer' is closed and has insufficient elements()
- 【洛谷】P3372线段树1 线段树模板
- 二叉树相关算法
- 深入理解 JavaScript 正则表达式的特性与最佳实践
- IT界最真实的面试实录
- 2.偏头痛杨的rocketmq4.x入门之安装&启动篇
- 数组中出现次数超过一半的数字
- Android组件化开发实践
- Web应用请求平均时间统计