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

Question about NMSFreeCoder #63

Open
george0407 opened this issue Feb 1, 2023 · 1 comment
Open

Question about NMSFreeCoder #63

george0407 opened this issue Feb 1, 2023 · 1 comment

Comments

@george0407
Copy link

Hello,
I wonder why the code below use a global topk to select higher scores.
cls_scores = cls_scores.sigmoid() scores, indexs = cls_scores.view(-1).topk(max_num) labels = indexs % self.num_classes bbox_index = indexs // self.num_classes bbox_preds = bbox_preds[bbox_index]

What if there are 2 or more higher scores generated by one query?

@nacayu
Copy link

nacayu commented Feb 27, 2023

Hello, I have the same question as you, if you solved, please tell me. Thanks~

Hello, I wonder why the code below use a global topk to select higher scores. cls_scores = cls_scores.sigmoid() scores, indexs = cls_scores.view(-1).topk(max_num) labels = indexs % self.num_classes bbox_index = indexs // self.num_classes bbox_preds = bbox_preds[bbox_index]

What if there are 2 or more higher scores generated by one query?

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

2 participants