MCPcopy Create free account
hub / github.com/DIVE128/DMVSNet / __init__

Method __init__

networks/module.py:343–346  ·  view source on GitHub ↗
(self, in_channels, base_channels,stage=0)

Source from the content-addressed store, hash-verified

341
342class CostRegNet(nn.Module):
343 def __init__(self, in_channels, base_channels,stage=0):
344 super(CostRegNet, self).__init__()
345 self.cosR_small=CostRegNet_part(in_channels, base_channels,stage=0)
346 self.cosR_huge=CostRegNet_part(in_channels, base_channels,stage=0)
347 def forward(self, x):
348 results=torch.cat((self.cosR_small(x),self.cosR_huge(x)),axis=1)
349 return results

Callers

nothing calls this directly

Calls 2

CostRegNet_partClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected