MCPcopy Create free account
hub / github.com/RolandGao/RegSeg / __init__

Method __init__

competitor_blocks.py:38–42  ·  view source on GitHub ↗
(self, inplane, outplane)

Source from the content-addressed store, hash-verified

36class AlignedModule(nn.Module):
37 #SFNet-DFNet
38 def __init__(self, inplane, outplane):
39 super(AlignedModule, self).__init__()
40 self.down_h = nn.Conv2d(inplane, outplane, 1, bias=False)
41 self.down_l = nn.Conv2d(inplane, outplane, 1, bias=False)
42 self.flow_make = nn.Conv2d(outplane*2, 2, kernel_size=3, padding=1, bias=False)
43
44 def forward(self, x):
45 low_feature, h_feature = x

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected