ma-xu/pointMLP-pytorch

Understanding the index_points function..

aspaul20 opened this issue · 2 comments

Hi, thank you for your work. I am trying to understand your code and until KNN it all makes good sense. However, I don't fully understand the working of the index_points(points, idx) function.

Q1: What is its purpose and how does it work?

Q2: Specifically, the following line:
new_points = points[batch_indices, idx, :]
Does it update the old points with new indices that are of the k-nearest neighbors?

Any help would be appreciated.
Thanks a lot.

ma-xu commented

@Amur-Pal Thanks for your interest.

Q1: What is its purpose and how does it work?

A1: index_points function finds and returns the sampled data. See the explanations here:

Q2: Does it update the old points with new indices that are of the k-nearest neighbors?

A2: No, we directly return a new tensor new_points. This function is only used to index points and return indexed points.

Please let me know if you have any further questions or concerns.

Great, thank you for the clarification and quick response. Have a good day.