deeplab的tensorflow实现,出现OutOfRangeError

米虫 Ian 2017-12-19 07:09:56
运行train.py时出现如下错误:(其中有几行显示Not found: /home/VOCdevkit/SegmentationClassAug/2008_003519.png
,而我下载的VOCtrainval_11-May-2012,也确实没有这张图片)
2017-12-19 16:28:12.476110: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-12-19 16:28:12.476130: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-12-19 16:28:12.476134: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-12-19 16:28:12.476137: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-12-19 16:28:12.476140: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
2017-12-19 16:28:12.578665: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2017-12-19 16:28:12.578909: I tensorflow/core/common_runtime/gpu/gpu_device.cc:887] Found device 0 with properties:
name: GeForce GTX 1050 Ti
major: 6 minor: 1 memoryClockRate (GHz) 1.43
pciBusID 0000:01:00.0
Total memory: 3.94GiB
Free memory: 3.46GiB
2017-12-19 16:28:12.578921: I tensorflow/core/common_runtime/gpu/gpu_device.cc:908] DMA: 0
2017-12-19 16:28:12.578938: I tensorflow/core/common_runtime/gpu/gpu_device.cc:918] 0: Y
2017-12-19 16:28:12.578943: I tensorflow/core/common_runtime/gpu/gpu_device.cc:977] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1050 Ti, pci bus id: 0000:01:00.0)
Restored model parameters from ./deeplab_resnet.ckpt
2017-12-19 16:28:16.094579: W tensorflow/core/framework/op_kernel.cc:1152]
Not found: /home/VOCdevkit/SegmentationClassAug/2008_003519.png
2017-12-19 16:28:16.094672: W tensorflow/core/framework/op_kernel.cc:1152]
Not found: /home/VOCdevkit/SegmentationClassAug/2008_003519.png
[[Node: create_inputs/ReadFile_1 = ReadFile[_device="/job:localhost/replica:0/task:0/cpu:0"](create_inputs/input_producer/Gather_1)]]
2017-12-19 16:28:16.099342: W tensorflow/core/framework/op_kernel.cc:1152]
Not found: /home/VOCdevkit/SegmentationClassAug/2008_003519.png
[[Node: create_inputs/ReadFile_1 = ReadFile[_device="/job:localhost/replica:0/task:0/cpu:0"](create_inputs/input_producer/Gather_1)]]
2017-12-19 16:28:16.352089: W tensorflow/core/framework/op_kernel.cc:1152] Out of range: FIFOQueue '_1_create_inputs/batch/fifo_queue' is closed and has insufficient elements (requested 10, current size 0)
[[Node: create_inputs/batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_UINT8], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](create_inputs/batch/fifo_queue, create_inputs/batch/n)]]
Traceback (most recent call last):
File "train.py", line 253, in <module>
main()
File "train.py", line 242, in main
loss_value, images, labels, preds, summary, _ = sess.run([reduced_loss, image_batch, label_batch, pred, total_summary, train_op], feed_dict=feed_dict)
File "/home/zy/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 778, in run
run_metadata_ptr)
File "/home/zy/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 982, in _run
feed_dict_string, options, run_metadata)
File "/home/zy/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1032, in _do_run
target_list, options, run_metadata)
File "/home/zy/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1052, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueue '_1_create_inputs/batch/fifo_queue' is closed and has insufficient elements (requested 10, current size 0)
[[Node: create_inputs/batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_UINT8], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](create_inputs/batch/fifo_queue, create_inputs/batch/n)]]

Caused by op u'create_inputs/batch', defined at:
File "train.py", line 253, in <module>
main()
File "train.py", line 141, in main
image_batch, label_batch = reader.dequeue(args.batch_size)
File "/home/zy/deeplab-tensorflow/tensorflow-deeplab-resnet-master/deeplab_resnet/image_reader.py", line 179, in dequeue
num_elements)
File "/home/zy/.local/lib/python2.7/site-packages/tensorflow/python/training/input.py", line 917, in batch
name=name)
File "/home/zy/.local/lib/python2.7/site-packages/tensorflow/python/training/input.py", line 712, in _batch
dequeued = queue.dequeue_many(batch_size, name=name)
File "/home/zy/.local/lib/python2.7/site-packages/tensorflow/python/ops/data_flow_ops.py", line 458, in dequeue_many
self._queue_ref, n=n, component_types=self._dtypes, name=name)
File "/home/zy/.local/lib/python2.7/site-packages/tensorflow/python/ops/gen_data_flow_ops.py", line 1328, in _queue_dequeue_many_v2
timeout_ms=timeout_ms, name=name)
File "/home/zy/.local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
op_def=op_def)
File "/home/zy/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2336, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/zy/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1228, in __init__
self._traceback = _extract_stack()

OutOfRangeError (see above for traceback): FIFOQueue '_1_create_inputs/batch/fifo_queue' is closed and has insufficient elements (requested 10, current size 0)
[[Node: create_inputs/batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_UINT8], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](create_inputs/batch/fifo_queue, create_inputs/batch/n)]]
...全文
1238 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
q1614816792 2019-05-15
  • 打赏
  • 举报
回复
NotFoundError (see above for traceback): Can not get size for: ./dataset/data/JPEGImages/2007_000032.jpg/SegmentationClassAug/2007_000032.png/JPEGImages/2007_000033.jpg/SegmentationClassAug/2007_000033.png/JPEGImages/2007_000039.jpg/SegmentationClassAug/2007_000039.png : ϵͳ\udcd5Ҳ\udcbb\udcb5\udcbdָ\udcb6\udca8\udcb5\udcc4·\udcbe\udcb6\udca1\udca3

[[Node: create_inputs/ReadFile = ReadFile[_device="/job:localhost/replica:0/task:0/cpu:0"](create_inputs/input_producer/Gather)]]
是什么错误,deeplabv2我用自己的数据三张图去预测一下出现这个
shenggedeqiang 2018-11-02
  • 打赏
  • 举报
回复
你好,请问你实现的deeplab哪一个版本呢
米虫 Ian 2018-10-28
  • 打赏
  • 举报
回复
官网下载的数据不全,还需要额外的数据覆盖一下链接:https://pan.baidu.com/s/1--WEHE3b8yA9FQkass3-tQ 提取码:bhx7 
shenggedeqiang 2018-10-22
  • 打赏
  • 举报
回复
楼主,我在运行一个语义分割的代码,遇到了类似的问题,也是outofrangeerror,对列没有足够的elements--fifo_queue' is closed and has insufficient elements (requested 10, current size 0),请问你后面解决这个问题了吗?
Shane_Tsui 2017-12-28
  • 打赏
  • 举报
回复
SegmentationClassAug文件下载地址:https://www.dropbox.com/s/oeu149j8qtbs1x0/SegmentationClassAug.zip?dl=0
米虫 Ian 2017-12-20
  • 打赏
  • 举报
回复
VOC2012中SegmentationClass和SegmentationObject文件夹中都是只有2913张分割图,并且train.list中的图片路径都是/SegmentationClassAug/2009_001884.png,下载下来的VOC2012数据集并没有这个文件夹,要怎么得到呢?

37,719

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧