MCPcopy Create free account
hub / github.com/OpenDriveLab/OccNet / eSEModule

Class eSEModule

projects/mmdet3d_plugin/models/backbones/vovnet.py:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164
165class eSEModule(nn.Module):
166 def __init__(self, channel, reduction=4):
167 super(eSEModule, self).__init__()
168 self.avg_pool = nn.AdaptiveAvgPool2d(1)
169 self.fc = nn.Conv2d(channel, channel, kernel_size=1, padding=0)
170 self.hsigmoid = Hsigmoid()
171
172 def forward(self, x):
173 input = x
174 x = self.avg_pool(x)
175 x = self.fc(x)
176 x = self.hsigmoid(x)
177 return input * x
178
179
180class _OSA_module(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected