When I'm doing a generative transpose convolution on a tensor. An error occured:
AssertionError: spatial range must be specified in generative mode
This seems to because I didn't specify the spatial_range when creating sparse tensor.
My sparse tensor is converted from a MinkowskiEngine SparseTensor by:
def minkowski_to_torchsparse_sparse_tensor(sparse_tensor: ME.SparseTensor) -> torchsparse.SparseTensor:
"""Convert the MinkowskiEngine SparseTensor to torchsparse SparseTensor"""
coords = sparse_tensor.C
feats = sparse_tensor.F
tensor_stride = sparse_tensor.tensor_stride
col_indices = torch.tensor([3, 0, 1, 2], device=coords.device)
coords = torch.index_select(coords, 1, col_indices)
out = torchsparse.SparseTensor(coords=coords, feats=feats, stride=tensor_stride)
return out
I don't know what does this spatial_range mean and how to specify it when converting from a MinkowskiEngine SparseTensor.
When I'm doing a generative transpose convolution on a tensor. An error occured: AssertionError: spatial range must be specified in generative mode This seems to because I didn't specify the spatial_range when creating sparse tensor.
My sparse tensor is converted from a MinkowskiEngine SparseTensor by:
I don't know what does this spatial_range mean and how to specify it when converting from a MinkowskiEngine SparseTensor.