QingyongHu/SensatUrban

OutofRangeError

clinhasg opened this issue · 0 comments

Hi Sir ;
Could you help me please to solve this problem

Traceback (most recent call last):
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1377, in _do_call
return fn(*args)
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1360, in _run_fn
return self._call_tf_sessionrun(options, feed_dict, fetch_list,
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1453, in _call_tf_sessionrun
return tf_session.TF_SessionRun_wrapper(self._session, options, feed_dict,
tensorflow.python.framework.errors_impl.OutOfRangeError: 2 root error(s) found.
(0) OUT_OF_RANGE: End of sequence
[[{{node IteratorGetNext}}]]
[[layers/Shape_60/_41]]
(1) OUT_OF_RANGE: End of sequence
[[{{node IteratorGetNext}}]]
0 successful operations.
0 derived errors ignored.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/gxu/chen/SensatUrban-master/RandLANet.py", line 159, in train
_, _, summary, l_out, probs, labels, acc = self.sess.run(ops, {self.is_training: True})
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 967, in run
result = self._run(None, fetches, feed_dict, options_ptr,
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1190, in _run
results = self._do_run(handle, final_targets, final_fetches,
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1370, in _do_run
return self._do_call(_run_fn, feeds, fetches, targets, options,
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1396, in _do_call
raise type(e)(node_def, op, message) # pylint: disable=no-value-for-parameter
tensorflow.python.framework.errors_impl.OutOfRangeError: Graph execution error:

Detected at node 'IteratorGetNext' defined at (most recent call last):
File "main_SensatUrban.py", line 268, in
dataset.init_input_pipeline()
File "main_SensatUrban.py", line 242, in init_input_pipeline
self.flat_inputs = iter.get_next()
Node: 'IteratorGetNext'
Detected at node 'IteratorGetNext' defined at (most recent call last):
File "main_SensatUrban.py", line 268, in
dataset.init_input_pipeline()
File "main_SensatUrban.py", line 242, in init_input_pipeline
self.flat_inputs = iter.get_next()
Node: 'IteratorGetNext'
2 root error(s) found.
(0) OUT_OF_RANGE: End of sequence
[[{{node IteratorGetNext}}]]
[[layers/Shape_60/_41]]
(1) OUT_OF_RANGE: End of sequence
[[{{node IteratorGetNext}}]]
0 successful operations.
0 derived errors ignored.

Original stack trace for 'IteratorGetNext':
File "main_SensatUrban.py", line 268, in
dataset.init_input_pipeline()
File "main_SensatUrban.py", line 242, in init_input_pipeline
self.flat_inputs = iter.get_next()
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/data/ops/iterator_ops.py", line 442, in get_next
flat_ret = gen_dataset_ops.iterator_get_next(
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/ops/gen_dataset_ops.py", line 2943, in iterator_get_next
_, _, _op, _outputs = _op_def_library._apply_op_helper(
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/framework/op_def_library.py", line 740, in _apply_op_helper
op = g._create_op_internal(op_type_name, inputs, dtypes=None,
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 3776, in _create_op_internal
ret = Operation(
File "/home/gxu/anaconda3/envs/chen/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 2175, in init
self._traceback = tf_stack.extract_stack_for_node(self._c_op)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main_SensatUrban.py", line 272, in
model.train(dataset)
File "/home/gxu/chen/SensatUrban-master/RandLANet.py", line 170, in train
m_iou = self.evaluate(dataset)
File "/home/gxu/chen/SensatUrban-master/RandLANet.py", line 240, in evaluate
gt_classes += np.sum(conf_matrix, axis=1)
ValueError: operands could not be broadcast together with shapes (13,) (10,)