Skip to content

Commit d62f7d9

Browse files
Merge pull request #62 from bkvie/patch-4
Update run_inference.py
2 parents c37a8db + 7d4c100 commit d62f7d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run_inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def main():
110110
imwrite(filename + '.png', to_save)
111111
if args.output_value in ['raw', 'both']:
112112
# Make the flow map a HxWx2 array as in .flo files
113-
to_save = flow_output.cpu().numpy().transpose(1,2,0)
113+
to_save = (args.div_flow*flow_output).cpu().numpy().transpose(1,2,0)
114114
np.save(filename + '.npy', to_save)
115115

116116

0 commit comments

Comments
 (0)