MCPcopy Create free account
hub / github.com/ICTMCG/FakeSV / forward

Method forward

code/models/Baselines.py:20–30  ·  view source on GitHub ↗
(self,  **kwargs)

Source from the content-addressed store, hash-verified

18 self.classifier = nn.Linear(fea_dim,2)
19
20 def forward(self, **kwargs):
21 frames=kwargs['bbox_vgg']
22 fea_img = self.linear_img(frames)
23 fea_img = torch.reshape(fea_img, (-1, 45, 128))
24 fea_img = self.attention1(fea_img)
25 fea_img = torch.mean(fea_img, -2)
26 fea_img = torch.reshape(fea_img, (-1, 83, 128))
27 fea_img = self.attention2(fea_img)
28 fea_img = torch.mean(fea_img, -2)
29 output = self.classifier(fea_img)
30 return output, fea_img
31
32class bC3D(torch.nn.Module):
33 def __init__(self,fea_dim):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected