MCPcopy Create free account
hub / github.com/LetheSec/PLG-MI-Attack / __init__

Method __init__

models/classifiers/classifier.py:149–160  ·  view source on GitHub ↗
(self, num_classes=1000)

Source from the content-addressed store, hash-verified

147
148class FaceNet64(nn.Module):
149 def __init__(self, num_classes=1000):
150 super(FaceNet64, self).__init__()
151 self.feature = evolve.IR_50_64((64, 64))
152 self.feat_dim = 512
153 self.num_classes = num_classes
154 self.output_layer = nn.Sequential(nn.BatchNorm2d(512),
155 nn.Dropout(),
156 Flatten(),
157 nn.Linear(512 * 4 * 4, 512),
158 nn.BatchNorm1d(512))
159
160 self.fc_layer = nn.Linear(self.feat_dim, self.num_classes)
161
162 def forward(self, x):
163 feat = self.feature(x)

Callers

nothing calls this directly

Calls 2

FlattenClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected