Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorpack/tensorpack
/ postprocess
Method
postprocess
examples/OpticalFlow/flownet_models.py:164–165 ·
view source on GitHub ↗
(self, prediction)
Source
from the content-addressed store, hash-verified
162
return
(x - rgb_mean) / 255.
163
164
def
postprocess(self, prediction):
165
return
resize(prediction * DISP_SCALE, mode=
'bilinear'
)
166
167
def
build_graph(self, left, right, gt_flow):
168
x = self.preprocess(left, right)
Callers
1
build_graph
Method · 0.95
Calls
1
resize
Function · 0.85
Tested by
no test coverage detected