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

Method __init__

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

Source from the content-addressed store, hash-verified

505
506class ODE2(nn.Module):
507 def __init__(self, in_channels,num_slots_N,num_slots_M,iters,resolutions):
508 super(ODE2, self).__init__()
509 self.SAn = SlotAttentionModule2(in_channels, resolutions, num_slots_N, iters)
510 self.SAm = SlotAttentionModule2(in_channels, resolutions, num_slots_M, iters)
511 self.getalpha = getAlpha(in_channels)
512
513 def forward(self, feature_map):
514 recon_combined1,f1 = self.SAn(feature_map)

Callers

nothing calls this directly

Calls 3

getAlphaClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected