关于images, labels=sess.run([images, labels])获取返回值报错
tensorflow吧
全部回复
仅看楼主
level 2
尝试自己制作了数据集后用cnn进行训练。
读取数据进行训练时想通过获取images和labels返回值以便后面feed
代码:images, labels=sess.run([images, labels])
报错:tensorflow.python.framework.errors_impl.OutOfRangeError: RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 10, current size 0)
求大佬指点[泪]
2018年04月16日 15点04分 1
level 8
他说你下标超出范围了,检查下
2018年04月17日 00点04分 2
很奇怪,我把image改成uint8后这个报错就没了
2018年04月17日 01点04分
哪个image啊
2018年04月26日 16点04分
level 8
他说你下标超出范围了,检查下
2018年04月17日 04点04分 3
level 6
看不到你的全部src
建议用Dataset来做
http://www.soaringroad.com/?p=672
参考从tfrecord文件创建Dataset
2018年04月17日 08点04分 4
1