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

Method __init__

lib/VIT/decoder/decoder_p.py:172–178  ·  view source on GitHub ↗
(self, dim=128)

Source from the content-addressed store, hash-verified

170
171class MSA_module(nn.Module):
172 def __init__(self, dim=128):
173 super(MSA_module, self).__init__()
174 self.B_TA = MSA_head()
175 self.F_TA = MSA_head()
176 self.TA = MSA_head()
177 self.Fuse = nn.Conv2d(3*dim,dim,kernel_size=3,padding=1)
178 self.Fuse2 = nn.Sequential(nn.Conv2d(dim, dim, kernel_size=1), nn.Conv2d(dim, dim, kernel_size=3, padding=1), nn.BatchNorm2d(dim), nn.ReLU(inplace=True))
179
180 def forward(self,x,side_x,mask):
181 N,C,H,W = x.shape

Callers

nothing calls this directly

Calls 2

MSA_headClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected