Skip to content

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

@a865550942

Description

@a865550942

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions