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

EMD runtime error: Please let me know what is the error as the same code works perfectly in a different project on the same PC #18

Open
kaali-billi opened this issue Sep 19, 2023 · 0 comments

Comments

@kaali-billi
Copy link

match = emd_cuda.approxmatch_forward(xyz1, xyz2)
IndexError: Dimension out of range (expected to be in range of [-2, 1], but got 2)

This is the error I am getting after input :

EMD = earth_mover_distance().cuda()
np1 = np.asarray(TSS.points)
np2 = np.asarray(RSS.points)
T1 = torch.from_numpy(np1).type(torch.float32).cuda()
T2 = torch.from_numpy(np2).type(torch.float32).cuda()
l1 = EMD(T2, T2)

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