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

Method __init__

lib/Modules.py:493–497  ·  view source on GitHub ↗
(self, in_channels,num_slots_N,num_slots_M,iters,resolutions)

Source from the content-addressed store, hash-verified

491
492class ODE(nn.Module):
493 def __init__(self, in_channels,num_slots_N,num_slots_M,iters,resolutions):
494 super(ODE, self).__init__()
495 self.SAn = SlotAttentionModule(in_channels, resolutions, num_slots_N, iters)
496 self.SAm = SlotAttentionModule(in_channels, resolutions, num_slots_M, iters)
497 self.getalpha = getAlpha(in_channels)
498
499 def forward(self, feature_map):
500 f1 = self.SAn(feature_map)

Callers

nothing calls this directly

Calls 3

SlotAttentionModuleClass · 0.85
getAlphaClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected