MCPcopy Create free account
hub / github.com/NVlabs/InstantSplat / __init__

Method __init__

lpipsPyTorch/modules/networks.py:24–33  ·  view source on GitHub ↗
(self, n_channels_list: Sequence[int])

Source from the content-addressed store, hash-verified

22
23class LinLayers(nn.ModuleList):
24 def __init__(self, n_channels_list: Sequence[int]):
25 super(LinLayers, self).__init__([
26 nn.Sequential(
27 nn.Identity(),
28 nn.Conv2d(nc, 1, 1, 1, 0, bias=False)
29 ) for nc in n_channels_list
30 ])
31
32 for param in self.parameters():
33 param.requires_grad = False
34
35
36class BaseNet(nn.Module):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected