Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chen-chunling opened this issue Apr 8, 2021 · 2 comments

Comments

@chen-chunling
Copy link

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
Copy link
Author

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 :)

@yk1232
Copy link

yk1232 commented Apr 22, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants