在openpose訓練的程序中出現了問題,考慮可能是執行緒或者資料集的問題,但是查了很多資料還是沒有解決,希望可以得到幫助~謝謝!
運行資訊如下:
2020-09-11 16:12:54,344 ERROR err type2, err=Cannot feed value of shape (16, 184, 216, 19) for Tensor 'heatmap:0', which has shape '(16, 46, 54, 19)', placeholders=[<tf.Tensor 'image:0
' shape=(16, 368, 432, 3) dtype=float32>, <tf.Tensor 'heatmap:0' shape=(16, 46, 54, 19) dtype=float32>, <tf.Tensor 'vectmap:0' shape=(16, 46, 54, 38) dtype=float32>]
[2020-09-11 16:12:54,362] [pose_dataset] [ERROR] Exception in Thread-1:Cannot feed value of shape (16, 184, 216, 19) for Tensor 'heatmap:0', which has shape '(16, 46, 54, 19)'
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\pose estimation\tf-pose-estimation\tf_pose\pose_dataset.py", line 507, in run
self.op.run(feed_dict=feed)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\framework\ops.py", line 1744, in run
_run_using_default_session(self, feed_dict, self.graph, session)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\framework\ops.py", line 4120, in _run_using_default_session
session.run(operation, feed_dict)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\client\session.py", line 895, in run
run_metadata_ptr)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\client\session.py", line 1100, in _run
% (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (16, 184, 216, 19) for Tensor 'heatmap:0', which has shape '(16, 46, 54, 19)'
2020-09-11 16:12:54,362 ERROR Exception in Thread-1:Cannot feed value of shape (16, 184, 216, 19) for Tensor 'heatmap:0', which has shape '(16, 46, 54, 19)'
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\pose estimation\tf-pose-estimation\tf_pose\pose_dataset.py", line 507, in run
self.op.run(feed_dict=feed)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\framework\ops.py", line 1744, in run
_run_using_default_session(self, feed_dict, self.graph, session)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\framework\ops.py", line 4120, in _run_using_default_session
session.run(operation, feed_dict)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\client\session.py", line 895, in run
run_metadata_ptr)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\client\session.py", line 1100, in _run
% (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (16, 184, 216, 19) for Tensor 'heatmap:0', which has shape '(16, 46, 54, 19)'
[2020-09-11 16:12:54,469] [pose_dataset] [INFO] Thread-1 Exited.
2020-09-11 16:12:54,469 INFO Thread-1 Exited.
Traceback (most recent call last):
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\client\session.py", line 1327, in _do_call
return fn(*args)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\client\session.py", line 1306, in _run_fn
status, run_metadata)
File "D:\Anaconda3\envs\tfpose\lib\contextlib.py", line 88, in __exit__
next(self.gen)
File "D:\Anaconda3\envs\tfpose\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.OutOfRangeError: FIFOQueue '_0_fifo_queue' is closed and has insufficient elements (requested 1, current size 0)
[[Node: fifo_queue_Dequeue = QueueDequeueV2[component_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](fifo_queue)]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train.py", line 314, in <module>
_, gs_num = sess.run([train_op, global_step])
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\client\session.py", line 895, in run
run_metadata_ptr)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\client\session.py", line 1124, in _run
feed_dict_tensor, options, run_metadata)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\client\session.py", line 1321, in _do_run
options, run_metadata)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\client\session.py", line 1340, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.OutOfRangeError: FIFOQueue '_0_fifo_queue' is closed and has insufficient elements (requested 1, current size 0)
[[Node: fifo_queue_Dequeue = QueueDequeueV2[component_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](fifo_queue)]]
Caused by op 'fifo_queue_Dequeue', defined at:
File "train.py", line 115, in <module>
q_inp, q_heat, q_vect = enqueuer.dequeue()
File "C:\Users\Administrator\Desktop\pose estimation\tf-pose-estimation\tf_pose\pose_dataset.py", line 529, in dequeue
return self.queue.dequeue()
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\ops\data_flow_ops.py", line 415, in dequeue
self._queue_ref, self._dtypes, name=name)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\ops\gen_data_flow_ops.py", line 1461, in _queue_dequeue_v2
timeout_ms=timeout_ms, name=name)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 767, in apply_op
op_def=op_def)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\framework\ops.py", line 2630, in create_op
original_op=self._default_original_op, op_def=op_def)
File "D:\Anaconda3\envs\tfpose\lib\site-packages\tensorflow\python\framework\ops.py", line 1204, in __init__
self._traceback = self._graph._extract_stack() # pylint: disable=protected-access
OutOfRangeError (see above for traceback): FIFOQueue '_0_fifo_queue' is closed and has insufficient elements (requested 1, current size 0)
[[Node: fifo_queue_Dequeue = QueueDequeueV2[component_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT], timeout_ms=-1, _device="/job:localhost/replica:0/task:0/cpu:0"](fifo_queue)]]
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/7062.html
上一篇:神經網路(cnn)訓練集正確率88%,測驗集只有50%,這是為什么
下一篇:matlab
