MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / __init__

Method __init__

evaluation/lpips.py:24–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22
23class AlexNet(nn.Module):
24 def __init__(self):
25 super().__init__()
26 self.layers = models.alexnet(weights=models.AlexNet_Weights.IMAGENET1K_V1).features
27 self.channels = []
28 for layer in self.layers:
29 if isinstance(layer, nn.Conv2d):
30 self.channels.append(layer.out_channels)
31
32 def forward(self, x):
33 fmaps = []

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected