MCPcopy Create free account
hub / github.com/MaureenZOU/TSAM / __init__

Method __init__

src/model/i3d.py:101–118  ·  view source on GitHub ↗
(self, in_channels, out_channels, name)

Source from the content-addressed store, hash-verified

99
100class InceptionModule(nn.Module):
101 def __init__(self, in_channels, out_channels, name):
102 super(InceptionModule, self).__init__()
103
104 self.b0 = Unit3D(in_channels=in_channels, output_channels=out_channels[0], kernel_shape=[1, 1, 1], padding=0,
105 name=name + '/Branch_0/Conv3d_0a_1x1')
106 self.b1a = Unit3D(in_channels=in_channels, output_channels=out_channels[1], kernel_shape=[1, 1, 1], padding=0,
107 name=name + '/Branch_1/Conv3d_0a_1x1')
108 self.b1b = Unit3D(in_channels=out_channels[1], output_channels=out_channels[2], kernel_shape=[3, 3, 3],
109 name=name + '/Branch_1/Conv3d_0b_3x3')
110 self.b2a = Unit3D(in_channels=in_channels, output_channels=out_channels[3], kernel_shape=[1, 1, 1], padding=0,
111 name=name + '/Branch_2/Conv3d_0a_1x1')
112 self.b2b = Unit3D(in_channels=out_channels[3], output_channels=out_channels[4], kernel_shape=[3, 3, 3],
113 name=name + '/Branch_2/Conv3d_0b_3x3')
114 self.b3a = MaxPool3dSamePadding(kernel_size=[3, 3, 3],
115 stride=(1, 1, 1), padding=0)
116 self.b3b = Unit3D(in_channels=in_channels, output_channels=out_channels[5], kernel_shape=[1, 1, 1], padding=0,
117 name=name + '/Branch_3/Conv3d_0b_1x1')
118 self.name = name
119
120 def forward(self, x):
121 b0 = self.b0(x)

Callers

nothing calls this directly

Calls 3

Unit3DClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected