Skip to content

Commit

Permalink
Fix voxel shift in sparse projection.
Browse files Browse the repository at this point in the history
  • Loading branch information
xheon committed Apr 29, 2022
1 parent 6539172 commit 906b4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modeling/projection/sparse_projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def forward(self, depth, features, instances, targets) -> Me.SparseTensor:

# pad to 256,256,256
padding_offsets = self.compute_frustum_padding(intrinsic_inverse)
flatten_coordinates = flatten_coordinates + padding_offsets + torch.tensor([1, 1, 1]).float().to(device)
flatten_coordinates = flatten_coordinates + padding_offsets #- torch.tensor([1, 1, 1]).float().to(device) # Fix wrong voxel offset

flat_features = sample_features.view(num_points * num_repetition, -1)
sparse_coordinates.append(flatten_coordinates)
Expand Down

0 comments on commit 906b4a5

Please sign in to comment.