Skip to content

About aggregation and interpolation #133

Open
@suyunzzz

Description

@suyunzzz

hello, zhijian,

  1. i want to do a aggregation and interpolation in sparse voxel,
    there are my code:
# aggregate + upsampling
def aggregate(x:SparseTensor,  voxel_size:int):
    z = PointTensor(x.F, x.C.float())
    
    x0 = initial_voxelize(z, 1, voxel_size)          # voxelization
    
    z0 = voxel_to_point(x0, z, nearest=True)   # voxel to point

    x1 = SparseTensor(z0.F, x.C, 1)

    print(x1.C.equal(x.C))
    print(x1.F.equal(x.F))
    return x1

in x1 = SparseTensor(z0.F, x.C, 1), i use x.C and z0.F to construct output x1, did I do something wrong?

  1. in this case, the kernel == voxel_size and stride == voxel_size, could I understand in this way?

thanks a lot! : )

Metadata

Metadata

Assignees

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