tusen-ai / RangeDet

Paper and Codes for “RangeDet: In Defense of Range View for LiDAR-based 3D Object Detection” (ICCV2021)
Apache License 2.0
188 stars 16 forks source link

Question about generating KITTI range view images #16

Open tengteng95 opened 2 years ago

tengteng95 commented 2 years ago

Thanks for your great work. Could you please tell me the meaning of height and incl in the function get_range_image [code] ?

Abyssaledge commented 2 years ago

height means the vertical height of each laser beam. incl means the inclination of each laser beam. Note that the 64 laser beams of LiDAR are not emitted from a single point.

Devoe-97 commented 2 years ago

height means the vertical height of each laser beam. incl means the inclination of each laser beam. Note that the 64 laser beams of LiDAR are not emitted from a single point.

Thanks for your great work. Could you please tell me how to calculate the height and zenith? Can the nuscenes data be converted into range view data format? What should I do for it?

Abyssaledge commented 2 years ago

@HuangDihe The heights and zeniths we used in KITTI are provided by the authors of RCD, which is obtained via Hough Transformation. You need to estimate height and zenith for each beam, which is somewhat similar to line detection with Hough Transformation. I believe you can do it in NuScenes but I cannot provide you the source code.

qrzeffort commented 2 years ago

@Abyssaledge Thanks for your great work! I run the code : python ./datasets/create_range_image_in_kitti.py --source-dir data/kitti --target-dir output but there is no results in --target-dir(only have npz_test,npz_trainval folder with no files and have .roidb files(5 Byte)),and report:

Error: 'lidar_idx'

the kitti data organized as follow,and generated .pkl files data │ ├── kitti │ │ │── ImageSets │ │ │── training │ │ │ ├──calib & velodyne & label_2 & image_2 & (optional: planes) & (optional: depth_2) │ │ │── testing │ │ │ ├──calib & velodyne & image_2

Myszz248 commented 1 year ago

@Abyssaledge Thanks for your great work! I run the code : python ./datasets/create_range_image_in_kitti.py --source-dir data/kitti --target-dir output but there is no results in --target-dir(only have npz_test,npz_trainval folder with no files and have .roidb files(5 Byte)),and report:

Error: 'lidar_idx'

the kitti data organized as follow,and generated .pkl files data │ ├── kitti │ │ │── ImageSets │ │ │── training │ │ │ ├──calib & velodyne & label_2 & image_2 & (optional: planes) & (optional: depth_2) │ │ │── testing │ │ │ ├──calib & velodyne & image_2

You may encounter error: lidar-idx because you named the storage differently from the author when generating the kitti_infos_trainval.pkl file for the kitti dataset. You can open your pkl file and look up the two memory names in 'point_cloud' to find the one that corresponds to 'lidar-idx', Then change the 'lidar-idx' in the process_single_frame function of create_range_image_in_kitti.py to the corresponding name

QYChan commented 1 year ago

@Abyssaledge What is the version of mmdet3d? The kitti pkl file changed in different version.