MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / build_graph

Method build_graph

examples/OpticalFlow/flownet_models.py:167–173  ·  view source on GitHub ↗
(self, left, right, gt_flow)

Source from the content-addressed store, hash-verified

165 return resize(prediction * DISP_SCALE, mode='bilinear')
166
167 def build_graph(self, left, right, gt_flow):
168 x = self.preprocess(left, right)
169 prediction = self.graph_structure(x)
170 prediction = self.postprocess(prediction)
171 tf.identity(prediction, name="prediction")
172 # endpoint error
173 tf.reduce_mean(tf.norm(prediction - gt_flow, axis=1), name='epe')
174
175
176class FlowNet2(FlowNetBase):

Callers

nothing calls this directly

Calls 3

preprocessMethod · 0.95
graph_structureMethod · 0.95
postprocessMethod · 0.95

Tested by

no test coverage detected