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 add inverse sigmoid function for the refpoint? #68

Open
Zhong-Zi-Zeng opened this issue Aug 13, 2023 · 0 comments
Open

Why add inverse sigmoid function for the refpoint? #68

Zhong-Zi-Zeng opened this issue Aug 13, 2023 · 0 comments

Comments

@Zhong-Zi-Zeng
Copy link

Could you explain why we add inverse sigmoid for the refpoint? And, when we get the output of transformer's decoder layer, we do the same thing for the refpoint.

 self.refpoint_embed.weight.data[:, :2].uniform_(0, 1)
 self.refpoint_embed.weight.data[:, :2] = inverse_sigmoid(self.refpoint_embed.weight.data[:, :2])

And

tmp[..., :self.query_dim] += inverse_sigmoid(reference_points)
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

1 participant