qq_39890038
菜鸟笔记ooo
2017-10-30 08:23

创建tensorflow数据集过程中出现的错误

  • 数据集
  • tensorflow
  • 深度学习
  • tfrecord

runfile('E:/hnudianshuji/TensorFlow/class4/train_tfrecord.py', wdir='E:/hnudianshuji/TensorFlow/class4')
WARNING:tensorflow:From C:\Users\Administrator\Anaconda3\lib\site-packages\tensorflow\python\util\tf_should_use.py:170: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use tf.global_variables_initializer instead.
(4, 20, 160, 1) Tensor("shuffle_batch:1", shape=(4,), dtype=int32)
(4, 20, 160, 1) 0 0 0 0 Tensor("shuffle_batch:1", shape=(4,), dtype=int32)
(4, 20, 160, 1) 0 0 0 0 Tensor("shuffle_batch:1", shape=(4,), dtype=int32)
(4, 20, 160, 1) 0 0 0 0 Tensor("shuffle_batch:1", shape=(4,), dtype=int32)
(4, 20, 160, 1) 0 0 0 0 Tensor("shuffle_batch:1", shape=(4,), dtype=int32)
(4, 20, 160, 1) [0 0 0 0]
ERROR:tensorflow:Exception in QueueRunner: Enqueue operation was cancelled
[[Node: input_producer/input_producer_EnqueueMany = QueueEnqueueManyV2Tcomponents=[DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"]]
ERROR:tensorflow:Exception in QueueRunner: Enqueue operation was cancelled
[[Node: shuffle_batch/random_shuffle_queue_enqueue = QueueEnqueueV2Tcomponents=[DT_FLOAT, DT_INT32], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"]]
Exception in thread Thread-6:
Traceback (most recent call last):
File "C:\Users\Administrator\Anaconda3\lib\threading.py", line 916, in bootstrap_inner
self.run()
File "C:\Users\Administrator\Anaconda3\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\tensorflow\python\training\queue_runner_impl.py", line 238, in _run
enqueue_callable()
File "C:\Users\Administrator\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1063, in _single_operation_run
target_list_as_strings, status, None)
File "C:\Users\Administrator\Anaconda3\lib\contextlib.py", line 89, in __exit
_
next(self.gen)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.CancelledError: Enqueue operation was cancelled
[[Node: input_producer/input_producer_EnqueueMany = QueueEnqueueManyV2Tcomponents=[DT_STRING], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"]]
Exception in thread Thread-7:
Traceback (most recent call last):
File "C:\Users\Administrator\Anaconda3\lib\threading.py", line 916, in bootstrap_inner
self.run()
File "C:\Users\Administrator\Anaconda3\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\tensorflow\python\training\queue_runner_impl.py", line 238, in _run
enqueue_callable()
File "C:\Users\Administrator\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1063, in _single_operation_run
target_list_as_strings, status, None)
File "C:\Users\Administrator\Anaconda3\lib\contextlib.py", line 89, in __exit
_
next(self.gen)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.CancelledError: Enqueue operation was cancelled
[[Node: shuffle_batch/random_shuffle_queue_enqueue = QueueEnqueueV2Tcomponents=[DT_FLOAT, DT_INT32], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"]]

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答

为你推荐

换一换