MCPcopy Create free account
hub / github.com/apchenstu/mvsnerf / __init__

Method __init__

models.py:692–709  ·  view source on GitHub ↗
(self, norm_act=InPlaceABN)

Source from the content-addressed store, hash-verified

690 output 3 levels of features using a FPN structure
691 """
692 def __init__(self, norm_act=InPlaceABN):
693 super(FeatureNet, self).__init__()
694
695 self.conv0 = nn.Sequential(
696 ConvBnReLU(3, 8, 3, 1, 1, norm_act=norm_act),
697 ConvBnReLU(8, 8, 3, 1, 1, norm_act=norm_act))
698
699 self.conv1 = nn.Sequential(
700 ConvBnReLU(8, 16, 5, 2, 2, norm_act=norm_act),
701 ConvBnReLU(16, 16, 3, 1, 1, norm_act=norm_act),
702 ConvBnReLU(16, 16, 3, 1, 1, norm_act=norm_act))
703
704 self.conv2 = nn.Sequential(
705 ConvBnReLU(16, 32, 5, 2, 2, norm_act=norm_act),
706 ConvBnReLU(32, 32, 3, 1, 1, norm_act=norm_act),
707 ConvBnReLU(32, 32, 3, 1, 1, norm_act=norm_act))
708
709 self.toplayer = nn.Conv2d(32, 32, 1)
710
711 def _upsample_add(self, x, y):
712 return F.interpolate(x, scale_factor=2,

Callers

nothing calls this directly

Calls 2

ConvBnReLUClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected