TRAILab / CaDDN

Categorical Depth Distribution Network for Monocular 3D Object Detection (CVPR 2021 Oral)
Apache License 2.0
366 stars 62 forks source link

Acquisition of depth data from waymo dataset #45

Closed Majiawei closed 3 years ago

Majiawei commented 3 years ago

Is it possible to provide scripts for depth map acquisition in waymo dataset? Including how to convert lidar data into sparse depth map? And how to complete sparse depth map to dense depth map? Thanks!

codyreading commented 3 years ago

Hi Majiawei.

I used this repo to generate dense depth maps from LiDAR. This repo only supports KITTI, so I ended up converting the Waymo dataset into a KITTI format to be used here. I don't currently have any scripts that loads the Waymo dataset directly.

Majiawei commented 3 years ago

Hi Majiawei.

I used this repo to generate dense depth maps from LiDAR. This repo only supports KITTI, so I ended up converting the Waymo dataset into a KITTI format to be used here. I don't currently have any scripts that loads the Waymo dataset directly.

I know the code base you are talking about, but there is no code to map lidar data to image plane to generate sparse depth map, right? This code can only complete the conversion from sparse depth map to dense depth map

codyreading commented 3 years ago

Ah I see, take a look at this script actually which does the projection and then converts the sparse depth maps to dense depth maps.

Alternatively, there is functionality built-in with this repo that should give you the projection functionality you desire. Taking a look at the projection code here. This function projects LiDAR points into the image, and gives you the pixel coordinates and the depth, which should allow you to construct the sparse depth map here. Although, this code was written for KITTI so will likely need to be modifed for use for Waymo.