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

About the indicator of reid model in evaluate.py #249

Open
a865550942 opened this issue Jul 2, 2022 · 0 comments
Open

About the indicator of reid model in evaluate.py #249

a865550942 opened this issue Jul 2, 2022 · 0 comments

Comments

@a865550942
Copy link

a865550942 commented Jul 2, 2022

why dose the top1correct indicator can get from using res = scores.topk(5, dim=1)[1][:,0] as the code below?

res = scores.topk(5, dim=1)[1][:,0]
top1correct = gl[res].eq(ql).sum().item()

why not using res = scores.topk(1, dim=1)[1][:,0]

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