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

Dimension of Position Embedding #34

Open
HollowFire opened this issue Nov 23, 2020 · 1 comment
Open

Dimension of Position Embedding #34

HollowFire opened this issue Nov 23, 2020 · 1 comment

Comments

@HollowFire
Copy link

The original paper describes the position embedding as a 5-dimension vector which contains the coordinates of the top left and bottom right corner plus a relative area. But in the data preprocessing script (seq2seq_loader.py), the variable vis_pe, which I figure stands for the position embedding, has a dimension of 6. What causes the difference and what is the extra value used for?

@LuoweiZhou
Copy link
Owner

@HollowFire The last dimension in vis_pe stands for the confidence score of the proposal: https://github.com/LuoweiZhou/detectron-vlp/blob/master/tools/extract_features.py#L266

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