Skip to content

Commit 361c3d5

Browse files
No longer index flow_output
This is already done with an iterator line 105 solves #66
1 parent dcd1456 commit 361c3d5

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
@@ -105,7 +105,7 @@ def main():
105105
for suffix, flow_output in zip(['flow', 'inv_flow'], output):
106106
filename = save_path/'{}{}'.format(img1_file.namebase[:-1], suffix)
107107
if args.output_value in['vis', 'both']:
108-
rgb_flow = flow2rgb(args.div_flow * flow_output[0], max_value=args.max_flow)
108+
rgb_flow = flow2rgb(args.div_flow * flow_output, max_value=args.max_flow)
109109
to_save = (rgb_flow * 255).astype(np.uint8).transpose(1,2,0)
110110
imwrite(filename + '.png', to_save)
111111
if args.output_value in ['raw', 'both']:

0 commit comments

Comments
 (0)