Closed huixiancheng closed 3 years ago
Hi, grid_sample expects values between -1 and 1, and then interpolates the feature at the given coordinates. Its just a way to get back the features for the 3D points from cnn in a way that allows you to backpropagate. But indeed maybe it would be more correct to use the floor()-ed values
Oh! Sorry, I missed it. Forget that we have normalization it between [-1,1] in dataset transorm. Thank you for the quick answer
https://github.com/DeyvidKochanov-TomTom/kprnet/blob/587a616b955b6be55b223e031e9ed39a8588d149/datasets/semantic_kitti.py#L176-L180. why use float not int? Not very clear about the work way of F.grid_sample.