pytorch_cluster
pytorch_cluster copied to clipboard
Add num_points to fps as an alternative to ratio
trafficstars
The current implementation of farthest point sampling only allows to set a ratio value to define the number of output points. Some use-cases require a fixed number of output points.
This PR adds an argument num_points to allow this. I also added some tests. The implementation raises a runtime exception if the number of requested points is greater than the number of input points.