When I run the project using my own point cloud data, the program reports an error.
Traceback (most recent call last):
File "/home/anaconda3/envs/SGLoc/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/anaconda3/envs/SGLoc/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/ssd2/xm/NeRF-LOAM/src/tracking.py", line 84, in spin
self.do_tracking(share_data, current_frame, kf_buffer)
File "/home/ssd2/xm/NeRF-LOAM/src/tracking.py", line 122, in do_tracking
frame_pose, hit_mask = track_frame(
File "/home/ssd2/xm/NeRF-LOAM/src/variations/render_helpers.py", line 457, in track_frame
curr_frame.sample_rays(N_rays, track=True)
File "/home/anaconda3/envs/SGLoc/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "/home/ssd2/xm/NeRF-LOAM/src/lidarFrame.py", line 56, in sample_rays
self.sample_mask = sample_rays(
File "/home/ssd2/xm/NeRF-LOAM/src/utils/sample_util.py", line 16, in sample_rays
sampled_index = sampling_without_replacement(
File "/home/ssd2/xm/NeRF-LOAM/src/utils/sample_util.py", line 9, in sampling_without_replacement
return scores.topk(k, dim=-1)[1]
RuntimeError: selected index k out of range
When I run the project using my own point cloud data, the program reports an error.
Is this error caused by the coefficient of the point cloud data?