MCPcopy Create free account
hub / github.com/Elsaam2y/DINet_optimized / __init__

Method __init__

models/Syncnet.py:273–280  ·  view source on GitHub ↗
(self, pretrain_path)

Source from the content-addressed store, hash-verified

271 """
272
273 def __init__(self, pretrain_path):
274 super(SyncNetPerception, self).__init__()
275 self.model = SyncNet(15, 29, 128)
276 print("load lip sync model : {}".format(pretrain_path))
277 self.model.load_state_dict(torch.load(pretrain_path)["state_dict"]["net"])
278 for param in self.model.parameters():
279 param.requires_grad = False
280 self.model.eval()
281
282 def forward(self, image, audio):
283 score = self.model(image, audio)

Callers

nothing calls this directly

Calls 2

SyncNetClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected