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

A strange mistake in triplet_loss.py #28

Open
mohuang1996 opened this issue Dec 27, 2020 · 0 comments
Open

A strange mistake in triplet_loss.py #28

mohuang1996 opened this issue Dec 27, 2020 · 0 comments

Comments

@mohuang1996
Copy link

hi!
I run your code but reported a strange error:File "./code/triplet_loss.py", line 62, in hard_example_mining dist_ap, relative_p_inds = torch.max(dist_mat[is_pos].contiguous().view(N, -1), 1, keepdim=True)
RuntimeError: shape '[64, -1]' is invalid for input of size 288
I think it for a long time, but I don't know how to fix it, can anyone help me?

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