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

Method __init__

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

Source from the content-addressed store, hash-verified

123
124class FaceNet(nn.Module):
125 def __init__(self, num_classes=1000):
126 super(FaceNet, self).__init__()
127 self.feature = evolve.IR_50_112((112, 112))
128 self.feat_dim = 512
129 self.num_classes = num_classes
130 self.fc_layer = nn.Linear(self.feat_dim, self.num_classes)
131
132 def predict(self, x):
133 feat = self.feature(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected