I am trying to segment lidar point cloud using PointCNN on jupyter notebook. But I am getting Index Error on running show_batch() and runtime error on running lr_find()
IndexError: index 7 is out of bounds for axis 0 with size 4
RuntimeError: Assertion `cur_target >= 0 && cur_target < n_classes' failed. at ..\aten\src\THNN/generic/ClassNLLCriterion.c:92
Any pointers that can help me in solving/debugging these error?
P.S. I am not a developer or coder so please excuse any silly mistake.
Solved! Go to Solution.
okay so the problem is with the LiDAR classification codes. Since they are not continuous as you can see in In[7] data.classes.
how to solve it? Its simple just reclassify codes to 0,1,2,3,4.....n
okay so the problem is with the LiDAR classification codes. Since they are not continuous as you can see in In[7] data.classes.
how to solve it? Its simple just reclassify codes to 0,1,2,3,4.....n