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

Intuition behind two details in the code #23

Open
az-ja opened this issue Jul 11, 2022 · 0 comments
Open

Intuition behind two details in the code #23

az-ja opened this issue Jul 11, 2022 · 0 comments

Comments

@az-ja
Copy link

az-ja commented Jul 11, 2022

Hello,
Thank you very much for sharing your precious work with us.
I had two questions regarding the code.

  1. In gma.py, line 60, the query tensor is scaled by self.scale = dim_head ** -0.5. Why is that necessary? I would also be thankful if you explain why you set the value to dim_head ** -0.5.
  2. In the same file, line 113, motion features are added to the attention output tensor. Could you please give some insights on that as well?

Thanks a lot.
Azin

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