Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SparseConv3D #19

Open
Yzichen opened this issue Sep 13, 2024 · 1 comment
Open

SparseConv3D #19

Yzichen opened this issue Sep 13, 2024 · 1 comment

Comments

@Yzichen
Copy link

Yzichen commented Sep 13, 2024

indices = anchor_xyz - anchor_xyz.min(0, keepdim=True)[0]
indices = indices / self.grid_size[None, :] # bg, 3
indices = indices.to(torch.int32)
batched_indices = torch.cat([
torch.arange(bs, device=indices.device, dtype=torch.int32).reshape(
bs, 1, 1).expand(-1, g, -1).flatten(0, 1),
indices], dim=-1)
spatial_shape = indices.max(0)[0]
input = spconv.SparseConvTensor(
instance_feature.flatten(0, 1), # bg, c
indices=batched_indices, # bg, 4
spatial_shape=spatial_shape,
batch_size=bs)

Although interaction can be efficient using sparse 3D convolution, there may be multiple 3D GSs belonging to the same grid, and after convolution, these 3D GSs will share an equal feature. Is this a limitation?

@huang-yh
Copy link
Owner

Indeed, this is a limitation. We chose sparse 3D convolution due to its efficiency and 3D inductive bias.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants