Open guohaoxiang opened 3 years ago
Same issue here
https://github.com/krrish94/chamferdist/blob/master/chamferdist/chamfer.py#L102 There is a bug here.
The chamfer distance defined here is not normalized and is squared. I think it depends on which kind of formulation you used.
For this issue, if each data(target and source) have 100 points, should we divide the result obtained by executing this code by 100?
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?