Skip to content

A question about U-net 'sse_block(prevlayer, prefix) #5

@enjlife

Description

@enjlife

Hi, I found something different from the article about the sSE(channel squeeze and spatial excitation). The article said that generating a projection tensor q ∈ RH×W . Each qi,j of the projection represents the linearly combined representation for all channels C for a spatial location (i,j). So, should the input of Conv2D be Conv2D(1,(1,1), padding='valid').Please help me.

def sse_block(prevlayer, prefix):
# Bug? Should be 1 here?
conv = Conv2D(K.int_shape(prevlayer)[3], (1, 1), padding="same", kernel_initializer="he_normal",
              activation='sigmoid', strides=(1, 1),
              name=prefix + "_conv")(prevlayer)
conv = Multiply(name=prefix + "_mul")([prevlayer, conv])
return conv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions