MCPcopy Create free account
hub / github.com/drinkingcoder/FlowFormer-Official / FlowHead

Class FlowHead

core/update.py:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class FlowHead(nn.Module):
7 def __init__(self, input_dim=128, hidden_dim=256):
8 super(FlowHead, self).__init__()
9 self.conv1 = nn.Conv2d(input_dim, hidden_dim, 3, padding=1)
10 self.conv2 = nn.Conv2d(hidden_dim, 2, 3, padding=1)
11 self.relu = nn.ReLU(inplace=True)
12
13 def forward(self, x):
14 return self.conv2(self.relu(self.conv1(x)))
15
16class ConvGRU(nn.Module):
17 def __init__(self, hidden_dim=128, input_dim=192+128):

Callers 2

__init__Method · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected