Pointnet_Pointnet2_pytorch icon indicating copy to clipboard operation
Pointnet_Pointnet2_pytorch copied to clipboard

s3dis data loader:why there is no subtraction process for z dimation?

Open fenfenglitech opened this issue 2 years ago • 4 comments

`selected_points = points[selected_point_idxs, :] # num_point * 6 current_points = np.zeros((self.num_point, 9)) # num_point * 9 current_points[:, 6] = selected_points[:, 0] / self.room_coord_max[room_idx][0] current_points[:, 7] = selected_points[:, 1] / self.room_coord_max[room_idx][1] current_points[:, 8] = selected_points[:, 2] / self.room_coord_max[room_idx][2]

    selected_points[:, 0] = selected_points[:, 0] - center[0]
    selected_points[:, 1] = selected_points[:, 1] - center[1]
    # there is no subtraction process for z dimation???
    selected_points[:, 3:6] /= 255.0
    current_points[:, 0:6] = selected_points`

fenfenglitech avatar Jul 11 '22 10:07 fenfenglitech

I have the same question. do u know why already? if, plz tell me. Many thanks!

hawkinglai avatar Aug 26 '22 06:08 hawkinglai

In line 180 of train_semseg.py, points are rotated by provider.rotate_point_cloud_z. So u could no do this process.

hawkinglai avatar Sep 30 '22 10:09 hawkinglai

Also, why is there no normalization done on the pointclouds for semantic segmentation? Normalization is done for modelnet and shapenet but not s3dis dataloader, why?

Akshatha-Jagadish avatar Oct 19 '23 08:10 Akshatha-Jagadish

Also, why is there no normalization done on the pointclouds for semantic segmentation? Normalization is done for modelnet and shapenet but not s3dis dataloader, why?

It done, plz check the line 67 of the Pointnet_Pointnet2_pytorch/data_utils/S3DISDataLoader.py

hawkinglai avatar Oct 20 '23 07:10 hawkinglai