nuscenes-devkit icon indicating copy to clipboard operation
nuscenes-devkit copied to clipboard

Accelerating map_pointcloud_to_image by loading LIDAR data only once

Open xhluca opened this issue 4 years ago • 2 comments

This following function performs a pretty expensive computation: https://github.com/lyft/nuscenes-devkit/blob/e4efd52a9630959a5b890e1575b58cab145e2441/lyft_dataset_sdk/lyftdataset.py#L653-L715

I am curious: does this function take so much time to run because of the process of loading the lidar cloud points, or transforming the 3D coordinates into 2D for a specific camera?

I am personally using this function in my public kernel for the Kaggle competition, and I realized that running this for all cameras, and across multiple timestamps takes a considerable amount of time, which could be partially caused by the data loading, I could cache it so that the lidar data is not redundantly loaded for every camera for a single timestamp. Thanks!

xhluca avatar Sep 13 '19 20:09 xhluca

I will look at it after the weekend, but if you know how to implement caching - feel free to create PR, it would be great and may help other competitors.

ternaus avatar Sep 13 '19 22:09 ternaus

It would be great if you can share an update on Accelerating loading of LiDAR data using 'map_pointcloud_to_image'

rrklearn2020 avatar Feb 07 '21 19:02 rrklearn2020