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

the generation of reference points in Deformable Attn #22

Open
soapmactavish-byf opened this issue Sep 16, 2024 · 2 comments
Open

the generation of reference points in Deformable Attn #22

soapmactavish-byf opened this issue Sep 16, 2024 · 2 comments

Comments

@soapmactavish-byf
Copy link

I am reading the code ,but i do not know the meaning of the number 0.5
# self.num_learnable_pts = 2
if self.num_learnable_pts > 0 and instance_feature is not None:
# 为什么要-0.5
learnable_scale = (
safe_sigmoid(self.learnable_fc(instance_feature)
.reshape(bs, num_anchor, self.num_learnable_pts, 3))
- 0.5
)

@huang-yh
Copy link
Owner

We sample reference points around the anchor xyz, so -0.5 accounts for those that fall on the negative halves of the axes given the sigmoid function yields values in the range of (0, 1).

@soapmactavish-byf
Copy link
Author

We sample reference points around the anchor xyz, so -0.5 accounts for those that fall on the negative halves of the axes given the sigmoid function yields values in the range of (0, 1).

thanks

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