mirror of
https://github.com/wassname/Pointnet2_PyTorch.git
synced 2026-07-09 00:20:12 +08:00
Updates and some refactoring
This commit is contained in:
@@ -142,7 +142,7 @@ class PointnetSAModule(nn.Module):
|
||||
new_xyz = pointnet2_utils.gather_points(
|
||||
xyz, pointnet2_utils.furthest_point_sample(xyz, self.npoint))
|
||||
else:
|
||||
new_xyz = xyz.new([[[0, 0, 0]]]).expand(xyz.size(0), 1, 3)
|
||||
new_xyz = xyz.data.new([[[0, 0, 0]]]).expand(xyz.size(0), 1, 3)
|
||||
|
||||
new_points = self.grouper(xyz, new_xyz,
|
||||
points) # (B, npoint, nsample, 3 + C)
|
||||
|
||||
Reference in New Issue
Block a user