lidar-bonnetal icon indicating copy to clipboard operation
lidar-bonnetal copied to clipboard

IndexError: index -2147483648 is out of bounds for axis 0 with size 64

Open Trexzhou opened this issue 3 years ago • 4 comments

Hi, thanks for your excellent works! But when I try to train by run "./train.py -d /path/to/dataset -ac /config/arch/squeezesegV2.yaml -l /path/to/log", an IndexError was caught, see: 111 I have check the variable "proj_y", it does have a large number. I want to know what's the problem? Thanks a lots!

Trexzhou avatar Nov 20 '21 04:11 Trexzhou

sorry for the late reply. it's hard to debug what it's happening there, but something in the projection does produce a strange y coordinate. I would try to check if all points are in bounds and if you need to modify the field of view (fov) of the sensor. I guess that you try to use your own dataset?

jbehley avatar Nov 29 '21 23:11 jbehley

hello, I met the same problem before, -2147483648 occur may due to the NAN value in lidar points, you may try to add below code in line 116 and line 119 in common/laserscan.py self.points = np.nan_to_num(self.points) may it help you!

dl19940602 avatar Dec 02 '21 02:12 dl19940602

Does this solve your issue, @Trexzhou?

jbehley avatar Dec 13 '21 19:12 jbehley

Hi, @Trexzhou , did you sovle your problem? I met the same problem like you, can you help me? @dl19940602 ,thanks your reply, I tried your method, but it doesn't work

xdtzzz avatar Jan 04 '22 15:01 xdtzzz

@jbehley @dl19940602 @Trexzhou @xdtzzz @l9761116 Did anyone solve this issue ? :)

rohithsaro avatar Oct 20 '22 08:10 rohithsaro

Screenshot_2022-10-27_12-04-57

May have found the issue. So i used a custom dataset and within said dataset, there seems to be a point at the center of the frame with values 0 in x,y,z coordinate. The Z value being zero at this coordinate interferes with the pitch calculation ( pitch = np.arcsin(scan_z , depth) resulting 0/0 ) in laserscan.py. Also make sure your dataset is in the right fixed frame when inferring.

You can correct me if i am wrong.

Best regards,

Rohith.

rohithsaro avatar Oct 27 '22 10:10 rohithsaro