Tensorflow-SegNet icon indicating copy to clipboard operation
Tensorflow-SegNet copied to clipboard

in _generate_image_and_label_batch min_after_dequeue=min_queue_examples

Open zyxcambridge opened this issue 8 years ago • 1 comments

2018-01-30 12:00:33.084242: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Found device 0 with properties: name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.645 pciBusID: 0000:65:00.0 totalMemory: 10.91GiB freeMemory: 9.43GiB 2018-01-30 12:00:33.084277: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:65:00.0, compute capability: 6.1) Traceback (most recent call last): File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1323, in _do_call return fn(*args) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1302, in _run_fn status, run_metadata) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.OutOfRangeError: RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 5, current size 0) [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_UINT8], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 52, in tf.app.run() File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "main.py", line 47, in main model.training(FLAGS, is_finetune=False) File "/home/zyx/Desktop/code/Tensorflow-SegNet-master/model.py", line 405, in training image_batch ,label_batch = sess.run([images, labels]) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 889, in run run_metadata_ptr) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1120, in _run feed_dict_tensor, options, run_metadata) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1317, in _do_run options, run_metadata) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1336, in _do_call raise type(e)(node_def, op, message) tensorflow.python.framework.errors_impl.OutOfRangeError: RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 5, current size 0) [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_UINT8], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

Caused by op 'shuffle_batch', defined at: File "main.py", line 52, in tf.app.run() File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "main.py", line 47, in main model.training(FLAGS, is_finetune=False) File "/home/zyx/Desktop/code/Tensorflow-SegNet-master/model.py", line 367, in training images, labels = CamVidInputs(image_filenames, label_filenames, batch_size) File "/home/zyx/Desktop/code/Tensorflow-SegNet-master/Inputs.py", line 120, in CamVidInputs shuffle=True) File "/home/zyx/Desktop/code/Tensorflow-SegNet-master/Inputs.py", line 44, in _generate_image_and_label_batch min_after_dequeue=min_queue_examples) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/training/input.py", line 1225, in shuffle_batch name=name) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/training/input.py", line 796, in _shuffle_batch dequeued = queue.dequeue_many(batch_size, name=name) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/ops/data_flow_ops.py", line 464, in dequeue_many self._queue_ref, n=n, component_types=self._dtypes, name=name) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/ops/gen_data_flow_ops.py", line 2418, in _queue_dequeue_many_v2 component_types=component_types, timeout_ms=timeout_ms, name=name) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper op_def=op_def) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 2956, in create_op op_def=op_def) File "/home/zyx/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1470, in init self._traceback = self._graph._extract_stack() # pylint: disable=protected-access

OutOfRangeError (see above for traceback): RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 5, current size 0) [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_UINT8], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

zyxcambridge avatar Jan 30 '18 04:01 zyxcambridge

Please check some of the other discussions. You most likely have the path set up incorrectly

tom-bu avatar Jan 30 '18 06:01 tom-bu