MCPcopy Create free account
hub / github.com/10Ring/LAA-Net / SimpleClassificationDF

Class SimpleClassificationDF

models/networks/arcface.py:195–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194@MODELS.register_module()
195class SimpleClassificationDF(Module):
196 def __init__(self, cfg: dict, **kwargs):
197 super(SimpleClassificationDF, self).__init__()
198 assert 'backbone' in cfg, 'Config for Backbones is mandatory!'
199 assert 'head' in cfg, 'Config for Heads is mandatory!'
200
201 self.backbone = BACKBONES.get(cfg.backbone.type)(**cfg.backbone)
202 self.head = HEADS.get(cfg.head.type)(**cfg.head)
203 self.model = Sequential(*[self.backbone,
204 self.head])
205
206 def forward(self, x):
207 x = self.model(x)
208 return x
209
210
211################################## MobileFaceNet #############################################################

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected