Skip to content

Voxel down sampling operation for point clouds #1666

@Chen-Suyi

Description

@Chen-Suyi

🚀 Feature

pytorch.ops.voxel_down_sample(input, voxel_size) would be a function to downsample input point cloud into output point cloud with a voxel

NOTE: Please look at the existing list of Issues tagged with the label 'enhancement`. Only open a new issue if you do not see your feature request there.

Motivation

We can do voxel down sampling easily by using one of the several libraries, open3d for example. However, most of them are implemented on CPUs and are not compatible with torch.Tensor. It would cost a lot if we do the conversion between torch.Tensor and numpy.ndarray frequently during training. It would be great if we could do this with torch.Tensor on GPUs directly. Some people make their own CUDA versions to do voxel down sampling, but most of the codes are not stable nor compatible with different Pytorch versions. So, It would be helpful if pytorch3d could offer this feature.

Pitch

Voxel down sampling is widely used in various tasks for point clouds.
There are many opensource implementations on the internet. Here for example.

NOTE: we only consider adding new features if they are useful for many users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions