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

Can I ask some questions about TOOD/mmdet/core/bbox/assigners/task_aligned_assigner.py ? #6

Open
boy-cyh opened this issue Sep 27, 2021 · 4 comments

Comments

@boy-cyh
Copy link

boy-cyh commented Sep 27, 2021

line 65: decode_bboxes (Tensor): predicted bounding boxes, shape(n, 80)
Why the shape of bbox here is (n,80)?
I started reading from tood_head.py and I wonder why the shape here is not the (n,4)?

@fcjian
Copy link
Owner

fcjian commented Sep 27, 2021

You are right. It is (n,4). I made a typing error. Thank you for your reminder.

@boy-cyh
Copy link
Author

boy-cyh commented Sep 27, 2021

Thank you for your answer!
And this is associated with a line of code.
the 83 line in the task_aligned_assigner.py : alignment_metrics = bbox_scores ** alpha * overlaps ** beta
In my inference,the shape of “bbox_scores” is (n,1,80) and the shape of "overlaps" is (n ,num_gts).
But the "num_gts" is not equal to 80,It seems that the two cannot be multiplied by "*"。
It's a little confusing to me.

@boy-cyh
Copy link
Author

boy-cyh commented Sep 28, 2021

I think if the shape of overlaps is (n, num_gts, 1),they can be multiplied by "*" to get the alignment_metrics, and the shape of alignment_metrics is (n, num_gts, 80).
I don't know if my understanding is correct about the alignment_metrics.

@boy-cyh
Copy link
Author

boy-cyh commented Sep 29, 2021

Sorry, I think of gt_label as None.I understand it.

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