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

Method forward

core/update.py:140–150  ·  view source on GitHub ↗
(self, net, inp, corr, flow, upsample=True)

Source from the content-addressed store, hash-verified

138 nn.Conv2d(256, 64*9, 1, padding=0))
139
140 def forward(self, net, inp, corr, flow, upsample=True):
141 motion_features = self.encoder(flow, corr)
142 inp = torch.cat([inp, motion_features], dim=1)
143
144 net = self.gru(net, inp)
145 delta_flow = self.flow_head(net)
146 delta_flow = delta_flow[:, :2]
147
148 # scale mask to balence gradients
149 mask = .25 * self.mask(net)
150 return net, mask, delta_flow
151
152

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected