Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return radii for FPS #84

Open
pvnieo opened this issue Sep 24, 2020 · 9 comments
Open

return radii for FPS #84

pvnieo opened this issue Sep 24, 2020 · 9 comments
Labels
enhancement New feature or request

Comments

@pvnieo
Copy link

pvnieo commented Sep 24, 2020

Hi,

Thank you for the great library.

Is there a plan to return the radius of the sampled points as well as the points in the function torch_cluster.fps?
I mean, I want the function to return (points, radius), where points = (x1, x2, x3, ...) and radius = (r1, r2, r2, ...) and r1 > r2 > r3 > ...

Thank you in advance!

@rusty1s
Copy link
Owner

rusty1s commented Sep 25, 2020

Do you mean the smallest radius to all other nodes?

@pvnieo
Copy link
Author

pvnieo commented Sep 25, 2020

Hi @rusty1s
yes, indeed!

@rusty1s
Copy link
Owner

rusty1s commented Sep 27, 2020

I think we can do this. IMO, this should be quite straightforward to implement, since we just need to write the distances into an additional output vector. I would very much welcome a PR on this if you are willing to contribute :)

@rusty1s rusty1s added the enhancement New feature or request label Sep 27, 2020
@pvnieo
Copy link
Author

pvnieo commented Sep 28, 2020

Hi @rusty1s !
I have a question! in the file fps.py, you imported torch, and you used the function torch.ops.torch_cluster.fps, but I can't find this function in the pytorch repo, where did it came from?

@rusty1s
Copy link
Owner

rusty1s commented Sep 29, 2020

Those are the CPU/CUDA (csr/cpu/csr/cuda) kernels injected into PyTorch by torch_cluster/__init__.

@pvnieo
Copy link
Author

pvnieo commented Oct 3, 2020

Hi @rusty1s
Concerning the first point chosen (either randomly, or the first point in the data), what should be the radius for the latter?
We can either choose to not assign to it a radius, in this case, return N point and (N-1) radius, or assign to it a symbolic radius, like -1, what do you think?

@rusty1s
Copy link
Owner

rusty1s commented Oct 5, 2020

Yes, that's tricky indeed. I prefer to use a vector of N-1, but what is the best may heavily depend on the use-case.

@mrqrs
Copy link

mrqrs commented Oct 23, 2020

Yes, that's tricky indeed. I prefer to use a vector of N-1, but what is the best may heavily depend on the use-case.

Hi, thanks for your great work. Can you release a new fps function that accpets variable( fps point number) not ratio?

@rusty1s
Copy link
Owner

rusty1s commented Oct 23, 2020

You can track the progress here: #85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants