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

Why didn't add self.INF(m_batchsize, height, width) to energy_W #122

Open
Theia137 opened this issue Oct 1, 2024 · 0 comments
Open

Why didn't add self.INF(m_batchsize, height, width) to energy_W #122

Theia137 opened this issue Oct 1, 2024 · 0 comments

Comments

@Theia137
Copy link

Theia137 commented Oct 1, 2024

energy_H = (torch.bmm(proj_query_H, proj_key_H)+self.INF(m_batchsize, height, width)).view(m_batchsize,width,height,height).permute(0,2,1,3)
energy_W = torch.bmm(proj_query_W, proj_key_W).view(m_batchsize,height,width,width)

What's difference between energy_H, and energy_W that coder didn't add self.INF to energy_W?

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