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

[Bug] chamfer_distance Error in calculation result #3106

Closed
2 tasks done
Annarine opened this issue May 21, 2024 · 0 comments
Closed
2 tasks done

[Bug] chamfer_distance Error in calculation result #3106

Annarine opened this issue May 21, 2024 · 0 comments

Comments

@Annarine
Copy link
Contributor

Prerequisite

Environment

mmcv 2.1
torch 2.2.2
cuda version 12.2

Reproduces the problem - code sample

import mmcv
import mmcv.ops import chamfer_distance
xyz1 = torch.tensor([-0.5562, 0.7417]).cuda()
xyz2 = torch.tensor([-4.1055, 5.8594]).cuda()
result = chamfer_distance(xyz1, xyz2)
print(result)

Reproduces the problem - command or script

python 执行代码

Reproduces the problem - error message

出现非预期结果 idx出现越界,dist出现错误值

Additional information

[38.7883],[38.7883],[0],[0]

@Annarine Annarine changed the title [Bug] [Bug] chamfer_distance Error in calculation result May 21, 2024
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

1 participant