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

Method __init__

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

Source from the content-addressed store, hash-verified

50
51class bVGG(torch.nn.Module):
52 def __init__(self,fea_dim):
53 super(bVGG, self).__init__()
54 # self.img_dim = 4096
55 self.img_dim = 2048
56 self.attention = Attention(dim=128,heads=4)
57
58 self.linear_img = nn.Sequential(torch.nn.Linear(self.img_dim, fea_dim),torch.nn.ReLU())
59
60 self.classifier = nn.Linear(fea_dim,2)
61
62 def forward(self, **kwargs):
63 frames=kwargs['frames']

Callers

nothing calls this directly

Calls 2

AttentionClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected