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

code problem #26

Open
guyuchao opened this issue Jul 4, 2019 · 1 comment
Open

code problem #26

guyuchao opened this issue Jul 4, 2019 · 1 comment

Comments

@guyuchao
Copy link

guyuchao commented Jul 4, 2019

When setting subsample to True,why self.theta don't add a maxpool layer?

@AlexHex7
Copy link
Owner

@guyuchao Hi.
The details can be seen in Figure 2 of this paper. It applys the subsample operation to reduce computation. You can also add maxpool to self.theta, but you need to upsample the feature map in the end (because identity connection).

In my opinion, if you add maxpool to self.theta, then 50% information will be lost. And finally 50% points of input x can not get the accurate non-local relation feature, as they didn't attend in non-local relation calculation.

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