We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c37a8db + 7d4c100 commit d62f7d9Copy full SHA for d62f7d9
run_inference.py
@@ -110,7 +110,7 @@ def main():
110
imwrite(filename + '.png', to_save)
111
if args.output_value in ['raw', 'both']:
112
# Make the flow map a HxWx2 array as in .flo files
113
- to_save = flow_output.cpu().numpy().transpose(1,2,0)
+ to_save = (args.div_flow*flow_output).cpu().numpy().transpose(1,2,0)
114
np.save(filename + '.npy', to_save)
115
116
0 commit comments