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

Usage example is incorrect? #10

Open
ofekp opened this issue Dec 11, 2022 · 1 comment
Open

Usage example is incorrect? #10

ofekp opened this issue Dec 11, 2022 · 1 comment

Comments

@ofekp
Copy link

ofekp commented Dec 11, 2022

I found that I need to call the method in a different way, first I needed to initialize the class and only then call it, so this works:

dist1, dist2, idx1, idx2 = chamfer_dist()(p1,p2)

while the example in the readme does not work and produces an error ... = chamfer_dist(p1,p2) (without the class parenthesis)

Is it just me?

Thank you for this package in any case.

@sh-taheri
Copy link

Thanks for your comment, I was stuck trying the run a different project (SAGA) which is using this library, and kept getting an error regarding the number of input arguments, when I found your suggestion chamfer_dist()(p1,p2), and it fixed the issue.

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

No branches or pull requests

2 participants