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

squeeze cls #78

Open
frkmac3 opened this issue Dec 2, 2024 · 1 comment
Open

squeeze cls #78

frkmac3 opened this issue Dec 2, 2024 · 1 comment

Comments

@frkmac3
Copy link

frkmac3 commented Dec 2, 2024

cls_scores, cls_ids = cls_scores.max(dim=-1)

I noticed that when instance_id is not None, you do this step first,can you tell me why

@swc-17
Copy link
Owner

swc-17 commented Dec 4, 2024

In line 54, cls_score is flattened from (bs, num_pred, num_cls) to (bs, num_pred * num_cls), then top k predictions are selected through higher score. In this case, if one instance predicts high score for all classes, the corresponding box will be selected several times, it's ok when performing detection task only, however, if we want to perform tracking simultaneously, we want this instance only be selected once and maintains the unique instance id, so squeeze cls is needed.

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