MCPcopy Create free account
hub / github.com/Francis-Rings/MotionFollower / __init__

Method __init__

src/models/resnet.py:30–49  ·  view source on GitHub ↗
(
        self,
        channels,
        use_conv=False,
        use_conv_transpose=False,
        out_channels=None,
        name="conv",
    )

Source from the content-addressed store, hash-verified

28
29class Upsample3D(nn.Module):
30 def __init__(
31 self,
32 channels,
33 use_conv=False,
34 use_conv_transpose=False,
35 out_channels=None,
36 name="conv",
37 ):
38 super().__init__()
39 self.channels = channels
40 self.out_channels = out_channels or channels
41 self.use_conv = use_conv
42 self.use_conv_transpose = use_conv_transpose
43 self.name = name
44
45 conv = None
46 if use_conv_transpose:
47 raise NotImplementedError
48 elif use_conv:
49 self.conv = InflatedConv3d(self.channels, self.out_channels, 3, padding=1)
50
51 def forward(self, hidden_states, output_size=None):
52 assert hidden_states.shape[1] == self.channels

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

InflatedConv3dClass · 0.85

Tested by

no test coverage detected