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

Method __init__

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

Source from the content-addressed store, hash-verified

844 Output: the segmentation map from the current stage
845 '''
846 def __init__(self, in_channels):
847 super(Decoder4_noEdge, self).__init__()
848 self.rcab_a = RCAB(in_channels)
849 self.rcab_b = RCAB(in_channels)
850
851 self.conv3x3 = BasicConv2d(in_channels * 2, in_channels, kernel_size=3, padding=1)
852 self.out_s = nn.Conv2d(in_channels, 1, kernel_size=3, padding=1)
853
854 def forward(self, f4, prior_cam):
855 prior_cam = F.interpolate(prior_cam, size=f4.size()[2:], mode='bilinear', align_corners=True) # 2,1,12,12->2,1,48,48

Callers

nothing calls this directly

Calls 3

RCABClass · 0.85
BasicConv2dClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected