Skip to content

Commit

Permalink
fix writing flow map bug in test
Browse files Browse the repository at this point in the history
  • Loading branch information
MeowZheng committed Jan 26, 2022
1 parent 573d79c commit 42a6751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmflow/apis/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def single_gpu_test(
if out_dir is not None:
mmcv.mkdir_or_exist(out_dir)
for i, r in enumerate(results):
write_flow(osp.join(out_dir, f'flow_{i:03d}.flo'), r)
write_flow(r, osp.join(out_dir, f'flow_{i:03d}.flo'))

if show_dir is not None:
mmcv.mkdir_or_exist(show_dir)
Expand Down

0 comments on commit 42a6751

Please sign in to comment.