Skip to content

Commit

Permalink
fix SCEModule.sSE (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle1993 authored and qubvel committed Dec 3, 2019
1 parent a242d53 commit 9ebf489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segmentation_models_pytorch/base/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, in_channels, reduction=16):
nn.Conv2d(in_channels // reduction, in_channels, 1),
nn.Sigmoid(),
)
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())

def forward(self, x):
return x * self.cSE(x) + x * self.sSE(x)
Expand Down

0 comments on commit 9ebf489

Please sign in to comment.