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

Method __init__

lib/Modules.py:237–240  ·  view source on GitHub ↗
(self, channel)

Source from the content-addressed store, hash-verified

235
236class CBAM(nn.Module):
237 def __init__(self, channel):
238 super(CBAM, self).__init__()
239 self.channel_attention = ChannelAttentionModule(channel)
240 self.spatial_attention = SpatialAttentionModule()
241
242 def forward(self, x):
243 out = self.channel_attention(x) * x

Callers

nothing calls this directly

Calls 3

__init__Method · 0.45

Tested by

no test coverage detected