We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a242d53 commit 9ebf489Copy full SHA for 9ebf489
segmentation_models_pytorch/base/modules.py
@@ -58,7 +58,7 @@ def __init__(self, in_channels, reduction=16):
58
nn.Conv2d(in_channels // reduction, in_channels, 1),
59
nn.Sigmoid(),
60
)
61
- self.sSE = nn.Sequential(nn.Conv2d(in_channels, in_channels, 1), nn.Sigmoid())
+ self.sSE = nn.Sequential(nn.Conv2d(in_channels, 1, 1), nn.Sigmoid())
62
63
def forward(self, x):
64
return x * self.cSE(x) + x * self.sSE(x)
0 commit comments