open-mmlab / mmdetection3d

OpenMMLab's next-generation platform for general 3D object detection.
https://mmdetection3d.readthedocs.io/en/latest/
Apache License 2.0
5.3k stars 1.54k forks source link

what is the unit related to distance considered for voxel_size (tuple or float): #1220

Closed ammaryasirnaich closed 2 years ago

ammaryasirnaich commented 2 years ago

It will be much appreciated if I can get help! In mmlab/mmdetection3d/tree/master/mmdet3d/core/voxel)/voxel_generator.py, I want to use a voxel size of height, width and length of [2,2,4] in meters. However, I am a little confused with the voxel_size (tuple or float) should I have to set it to (0.2,0.2,0.4) or (2,2,4) ?

ZCMax commented 2 years ago

You can the voxel_size in config directly, like https://github.com/open-mmlab/mmdetection3d/blob/c0d009044af7f643f08cc1373925c6ce7bbd0fce/configs/_base_/models/hv_pointpillars_secfpn_kitti.py#L1, and it should be (2, 2, 4)

ammaryasirnaich commented 2 years ago

You can the voxel_size in config directly, like

https://github.com/open-mmlab/mmdetection3d/blob/c0d009044af7f643f08cc1373925c6ce7bbd0fce/configs/_base_/models/hv_pointpillars_secfpn_kitti.py#L1

, and it should be (2, 2, 4)

Thanks a lot ZCMax