MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / FlowHead_cnn

Class FlowHead_cnn

core/update.py:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 return self.conv2(self.relu(self.conv1(x)))
15
16class FlowHead_cnn(nn.Module):
17 def __init__(self, input_dim=128, hidden_dim=256):
18 super(FlowHead_cnn, self).__init__()
19 self.conv1 = nn.Conv2d(input_dim, hidden_dim, 3, padding=1)
20 self.conv2 = nn.Conv2d(hidden_dim, 2, 3, padding=1)
21 self.relu = nn.ReLU(inplace=True)
22
23 def forward(self, x):
24 return self.conv2(self.relu(self.conv1(x)))
25
26class ConvGRU(nn.Module):
27 def __init__(self, hidden_dim=128, input_dim=192+128):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected