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

Method __init__

code/models/Baselines.py:33–41  ·  view source on GitHub ↗
(self,fea_dim)

Source from the content-addressed store, hash-verified

31
32class bC3D(torch.nn.Module):
33 def __init__(self,fea_dim):
34 super(bC3D, self).__init__()
35 # self.video_dim = 4096
36 self.video_dim = 2048
37 self.attention = Attention(dim=128,heads=4)
38
39 self.linear_video = nn.Sequential(torch.nn.Linear(self.video_dim, fea_dim),torch.nn.ReLU())
40
41 self.classifier = nn.Linear(fea_dim,2)
42
43 def forward(self, **kwargs):
44 c3d = kwargs['c3d']

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

AttentionClass · 0.85

Tested by

no test coverage detected