ummkd icon indicating copy to clipboard operation
ummkd copied to clipboard

RandomShuffleQueue 'xxx' is closed and has insufficient elements (requested 8, current size 0)

Open chen-chunling opened this issue 3 years ago • 2 comments

I encountered the following problem when I running the main_combine.py for training, and I following the tutorial for that.

INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.NotFoundError'>, mr_train_tfs/mr_train_slice4848.tfrecords; No such file or directory
	 [[Node: ReaderReadV2 = ReaderReadV2[_device="/job:localhost/replica:0/task:0/device:CPU:0"](TFRecordReaderV2, input_producer)]]
Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.NotFoundError'>, mr_train_tfs/mr_train_slice4848.tfrecords; No such file or directory
	 [[Node: ReaderReadV2 = ReaderReadV2[_device="/job:localhost/replica:0/task:0/device:CPU:0"](TFRecordReaderV2, input_producer)]]

tensorflow.python.framework.errors_impl.OutOfRangeError: RandomShuffleQueue '_5_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 8, current size 0)
	 [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_FLOAT, DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

It seems that there are some problems with the TFRecord since tf.train.shuffle_batch with code error. Maybe it is the wrong shape or something else.

I don't know how to do with it. Did any one encourter similar problems before? Looking forward to your reply, thank you!

chen-chunling avatar Apr 08 '21 13:04 chen-chunling

I encountered the following problem when I running the main_combine.py for training, and I following the tutorial for that.

INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.NotFoundError'>, mr_train_tfs/mr_train_slice4848.tfrecords; No such file or directory
	 [[Node: ReaderReadV2 = ReaderReadV2[_device="/job:localhost/replica:0/task:0/device:CPU:0"](TFRecordReaderV2, input_producer)]]
Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.NotFoundError'>, mr_train_tfs/mr_train_slice4848.tfrecords; No such file or directory
	 [[Node: ReaderReadV2 = ReaderReadV2[_device="/job:localhost/replica:0/task:0/device:CPU:0"](TFRecordReaderV2, input_producer)]]

tensorflow.python.framework.errors_impl.OutOfRangeError: RandomShuffleQueue '_5_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 8, current size 0)
	 [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_FLOAT, DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

It seems that there are some problems with the TFRecord since tf.train.shuffle_batch with code error. Maybe it is the wrong shape or something else.

I don't know how to do with it. Did any one encourter similar problems before? Looking forward to your reply, thank you!

I have solved this problem. I have encountered this problem due to my mistake, not the author's source code or data. Thanks for the author's contribution :)

chen-chunling avatar Apr 11 '21 00:04 chen-chunling

I encountered the following problem when I running the main_combine.py for training, and I following the tutorial for that.

INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.NotFoundError'>, mr_train_tfs/mr_train_slice4848.tfrecords; No such file or directory
	 [[Node: ReaderReadV2 = ReaderReadV2[_device="/job:localhost/replica:0/task:0/device:CPU:0"](TFRecordReaderV2, input_producer)]]
Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.NotFoundError'>, mr_train_tfs/mr_train_slice4848.tfrecords; No such file or directory
	 [[Node: ReaderReadV2 = ReaderReadV2[_device="/job:localhost/replica:0/task:0/device:CPU:0"](TFRecordReaderV2, input_producer)]]

tensorflow.python.framework.errors_impl.OutOfRangeError: RandomShuffleQueue '_5_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (requested 8, current size 0)
	 [[Node: shuffle_batch = QueueDequeueManyV2[component_types=[DT_FLOAT, DT_FLOAT, DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/device:CPU:0"](shuffle_batch/random_shuffle_queue, shuffle_batch/n)]]

It seems that there are some problems with the TFRecord since tf.train.shuffle_batch with code error. Maybe it is the wrong shape or something else. I don't know how to do with it. Did any one encourter similar problems before? Looking forward to your reply, thank you!

I have solved this problem. I have encountered this problem due to my mistake, not the author's source code or data. Thanks for the author's contribution :)

How do you solve it? I've got this problem too.

yk1232 avatar Apr 22 '21 12:04 yk1232