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

problems with function _project_features #69

Open
lcuyh opened this issue Jun 1, 2018 · 3 comments
Open

problems with function _project_features #69

lcuyh opened this issue Jun 1, 2018 · 3 comments

Comments

@lcuyh
Copy link

lcuyh commented Jun 1, 2018

Hi! Thank you for sharing your code! I have some questions about your coding. The shape of the input of the function _project_features is (N, L, D), and the output of this function is the same shape of the input. So, why you need to have this function? What the purpose of this function?

@yxding95
Copy link

yxding95 commented Jun 9, 2018

hi, i have the same question, have you figured out? i found project_features was added to attention extracted from hidden state (see function _attention_layer) @lcuyh @yunjey

@zx3Leonoardo
Copy link

hi, I've got the same problem. Why would the author project the features of images before feeding them into attention layer?

@yxding95
Copy link

i think the project_features is transforming feature dim to the dim of hidden state, which was used in attention layer. The dim of VGG conv5_3 is the same with h_dim, but if we change another feature, maybe we have to use project feature

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

3 participants