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

the code is not right #4

Open
swjtulinxi opened this issue Dec 30, 2019 · 1 comment
Open

the code is not right #4

swjtulinxi opened this issue Dec 30, 2019 · 1 comment

Comments

@swjtulinxi
Copy link

def AttentionRefinmentModule(inputs, n_filters):
filters = n_filters

poolingLayer = AveragePooling2D(pool_size=(1, 1), padding='same')??????

#the paper said it is globalAveragePooling ,but here ?????????

x = poolingLayer(inputs)
x = ConvAndBatch(x, kernel=(1, 1), n_filters=filters, activation='sigmoid')

return multiply([inputs, x])
@MengzhuoTian
Copy link

you can set the corresponding pooling size of poolingLayer to achieve a global average pooling.

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