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

Distance Not Normalized #14

Open
guohaoxiang opened this issue Aug 18, 2021 · 4 comments
Open

Distance Not Normalized #14

guohaoxiang opened this issue Aug 18, 2021 · 4 comments

Comments

@guohaoxiang
Copy link

a = torch.zeros(21).view(1,-1,3)
b = a + 1
dist = chamferDist(a, b)

The expected distance between a and b should be sqrt(3), however, chamferDist(a,b) returns 21. Is it because the distance not divided by the number of points?

@XueHu1995
Copy link

Same issue here

@Yihanhu
Copy link

Yihanhu commented Oct 5, 2021

@pansanity666
Copy link

pansanity666 commented Apr 11, 2022

The chamfer distance defined here is not normalized and is squared. I think it depends on which kind of formulation you used.

@ghost
Copy link

ghost commented Jul 23, 2022

For this issue, if each data(target and source) have 100 points,
should we divide the result obtained by executing this code by 100?

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

4 participants