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

Learn on our labeled dataset = error. #291

Open
dmitriys566 opened this issue Feb 3, 2025 · 0 comments
Open

Learn on our labeled dataset = error. #291

dmitriys566 opened this issue Feb 3, 2025 · 0 comments

Comments

@dmitriys566
Copy link

Hello!
I caught the error when I try to learn RandLA on our dataset.
First, i prepared txt files based on our ply files.
Next, I generate PLY files based on TXT files.
This is OK. I tried to open the result PLY files in CloudCompare and there are no errors.
Next, I setup classnames based on our labels.
I run learning and this write EPOCH 0, and running, after that I saw this error:
`File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1292, in _do_call [60/120]
return fn(*args)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1277, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1367, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.OutOfRangeError: End of sequence
[[{{node IteratorGetNext}} = IteratorGetNextoutput_shapes=[[?,?,3], [?,?,3], [?,?,3], [?,?,3], [?,?,3], ..., , [?,?,6], [?,?], [?,?], [?,?]], output_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_INT
32, DT_FLOAT, DT_INT32, DT_INT32, DT_INT32], _device="/job:localhost/replica:0/task:0/device:CPU:0"
]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/dmitriys/RandLA-Net/RandLANet.py", line 160, in train
_, _, summary, l_out, probs, labels, acc = self.sess.run(ops, {self.is_training: True})
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 887, in run
run_metadata_ptr)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1110, in _run
feed_dict_tensor, options, run_metadata)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1286, in _do_run
run_metadata)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1308, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.OutOfRangeError: End of sequence
[[{{node IteratorGetNext}} = IteratorGetNextoutput_shapes=[[?,?,3], [?,?,3], [?,?,3], [?,?,3], [?,?,3], ..., , [?,?,6], [?,?], [?,?], [?,?]], output_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_INT
32, DT_FLOAT, DT_INT32, DT_INT32, DT_INT32], _device="/job:localhost/replica:0/task:0/device:CPU:0"
]]

Caused by op 'IteratorGetNext', defined at:
File "main_Semantic3D.py", line 348, in
dataset.init_input_pipeline()
File "main_Semantic3D.py", line 328, in init_input_pipeline
self.flat_inputs = iter.get_next()
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/data/ops/iterator_ops.py", line 420, in get_next
name=name)), self._output_types,
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/ops/gen_dataset_ops.py", line 2069, in iterator_get_next
output_shapes=output_shapes, name=name)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/util/deprecation.py", line 488, in new_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 3272, in create_op
op_def=op_def)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1768, in init
self._traceback = tf_stack.extract_stack()

OutOfRangeError (see above for traceback): End of sequence
[[{{node IteratorGetNext}} = IteratorGetNextoutput_shapes=[[?,?,3], [?,?,3], [?,?,3], [?,?,3], [?,?,3], ..., , [?,?,6], [?,?], [?,?], [?,?]], output_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_INT
32, DT_FLOAT, DT_INT32, DT_INT32, DT_INT32], _device="/job:localhost/replica:0/task:0/device:CPU:0"
]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1292, in _do_call
return fn(*args)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1277, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1367, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.UnknownError: IndexError: index 6 is out of bounds for axis 0 with size 6
Traceback (most recent call last):

File "/usr/local/lib/python3.5/site-packages/tensorflow/python/ops/script_ops.py", line 206, in call
ret = func(*args)

File "/usr/local/lib/python3.5/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 418, in generator_py_func
values = next(generator_state.get_iterator(iterator_id))

File "main_Semantic3D.py", line 214, in spatially_regular_gen
queried_pt_weight = np.array([self.class_weight[split][0][n] for n in queried_pc_labels])

File "main_Semantic3D.py", line 214, in
queried_pt_weight = np.array([self.class_weight[split][0][n] for n in queried_pc_labels])

IndexError: index 6 is out of bounds for axis 0 with size 6

     [[{{node PyFunc}} = PyFunc[Tin=[DT_INT64], Tout=[DT_FLOAT, DT_FLOAT, DT_INT32, DT_INT32, DT_INT32], token="pyfunc_4"](arg0)]]                      
     [[{{node IteratorGetNext}} = IteratorGetNext[output_shapes=[[?,?,3], [?,?,3], [?,?,3], [?,?,3], [?,?,3], ..., <unknown>, [?,?,6], [?,?], [?,?], [?,?]], output_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_INT

32, DT_FLOAT, DT_INT32, DT_INT32, DT_INT32], _device="/job:localhost/replica:0/task:0/device:CPU:0"](IteratorV2)]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main_Semantic3D.py", line 352, in
model.train(dataset)
File "/home/dmitriys/RandLA-Net/RandLANet.py", line 170, in train
m_iou = self.evaluate(dataset)
File "/home/dmitriys/RandLA-Net/RandLANet.py", line 218, in evaluate
stacked_prob, labels, acc = self.sess.run(ops, {self.is_training: False})
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 887, in run
run_metadata_ptr)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1110, in _run
feed_dict_tensor, options, run_metadata)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1286, in _do_run
run_metadata)
File "/usr/local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1308, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.UnknownError: IndexError: index 6 is out of bounds for axis 0 with size 6
Traceback (most recent call last):

File "/usr/local/lib/python3.5/site-packages/tensorflow/python/ops/script_ops.py", line 206, in call
ret = func(*args)

File "/usr/local/lib/python3.5/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 418, in generator_py_func
values = next(generator_state.get_iterator(iterator_id))

File "main_Semantic3D.py", line 214, in spatially_regular_gen
queried_pt_weight = np.array([self.class_weight[split][0][n] for n in queried_pc_labels])

File "main_Semantic3D.py", line 214, in
queried_pt_weight = np.array([self.class_weight[split][0][n] for n in queried_pc_labels])

IndexError: index 6 is out of bounds for axis 0 with size 6

     [[{{node PyFunc}} = PyFunc[Tin=[DT_INT64], Tout=[DT_FLOAT, DT_FLOAT, DT_INT32, DT_INT32, DT_INT32], token="pyfunc_4"](arg0)]]                                                                                                      
     [[{{node IteratorGetNext}} = IteratorGetNext[output_shapes=[[?,?,3], [?,?,3], [?,?,3], [?,?,3], [?,?,3], ..., <unknown>, [?,?,6], [?,?], [?,?], [?,?]], output_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_INT

32, DT_FLOAT, DT_INT32, DT_INT32, DT_INT32], _device="/job:localhost/replica:0/task:0/device:CPU:0"](IteratorV2)]]
`

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

1 participant