MCPcopy Create free account
hub / github.com/ChunmingHe/WS-SAM / __init__

Method __init__

lib/Modules.py:249–253  ·  view source on GitHub ↗
(self, in_channels)

Source from the content-addressed store, hash-verified

247
248class InterFA(nn.Module):
249 def __init__(self, in_channels):
250 super(InterFA, self).__init__()
251 self.conv3x3 = BasicConv2d(in_channels * 2, in_channels, kernel_size=3, padding=1)
252 self.cbam = CBAM(in_channels)
253 self.conv1x1 = BasicConv2d(in_channels * 2, in_channels, kernel_size=1, stride=1, padding=0)
254
255 def forward(self, f1, f2):
256 f2_up = F.interpolate(f2, size=f1.size()[2:], mode='bilinear', align_corners=True)

Callers

nothing calls this directly

Calls 3

BasicConv2dClass · 0.85
CBAMClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected