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

I have a question about sampling offset in the pose decoder. #12

Open
Yamameeee opened this issue Aug 5, 2022 · 2 comments
Open

I have a question about sampling offset in the pose decoder. #12

Yamameeee opened this issue Aug 5, 2022 · 2 comments

Comments

@Yamameeee
Copy link

In FIgure 3. in your PETR paper, each referencepoint has multi sampling points.
But the shape of input sampling_locations for MultiScaleDeformableAttnFunction is (bs, num_query, num_heads, num_levels, num_leypoints, 2).

Did you set the number of sampling offsets for one reference point (i.e. one keypoint) as 1?

sampling_locations = reference_points_reshape \

@dae-sun
Copy link

dae-sun commented Aug 5, 2022

yes, the number of sampling offsets for one reference point (i.e. one keypoint) is set as 1 for each head and feature level
So there are 32 sampling offsets for one reference point.

@dae-sun
Copy link

dae-sun commented Aug 5, 2022

5
It could be visualized like this. green is the reference point and other points are sampling points. (low attentions are dismissed)

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