Open
Description
hello, zhijian,
- 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?
- in this case, the
kernel == voxel_size
andstride == voxel_size
, could I understand in this way?
thanks a lot! : )