MCPcopy Create free account
hub / github.com/PowerHouseMan/ComfyUI-AdvancedLivePortrait / __init__

Method __init__

LivePortrait/modules/util.py:107–112  ·  view source on GitHub ↗
(self, in_features, out_features, kernel_size=3, padding=1, groups=1)

Source from the content-addressed store, hash-verified

105 """
106
107 def __init__(self, in_features, out_features, kernel_size=3, padding=1, groups=1):
108 super(UpBlock3d, self).__init__()
109
110 self.conv = nn.Conv3d(in_channels=in_features, out_channels=out_features, kernel_size=kernel_size,
111 padding=padding, groups=groups)
112 self.norm = nn.BatchNorm3d(out_features, affine=True)
113
114 def forward(self, x):
115 out = F.interpolate(x, scale_factor=(1, 2, 2))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected