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

Why modulating attention by w&h works? #49

Open
SupetZYK opened this issue Aug 30, 2022 · 1 comment
Open

Why modulating attention by w&h works? #49

SupetZYK opened this issue Aug 30, 2022 · 1 comment

Comments

@SupetZYK
Copy link

I have some doubts on line https://github.com/IDEA-opensource/DAB-DETR/blob/main/models/DAB_DETR/transformer.py#L242 .

refHW_cond = self.ref_anchor_head(output).sigmoid() # nq, bs, 2

This line asks the model to learn absolute value of w, h from output. But NO supervision is applied. Besides, the 'output' tensor is used to learn the OFFSET of bbox (x, y, w, h).

So, I am wondering whether the model can learn width and height as expected?

@SlongLiu
Copy link
Collaborator

SlongLiu commented Sep 2, 2022

The results show that our models get performance gains with the modulated operation.

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