Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaowang authored May 24, 2020
1 parent f8b3e77 commit 05c404f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def test_single_image(img_path, model, training_hw, save_dir='./'):
)
arg_parser.add_argument('-c', '--config_file', default=None, help='config file.')
arg_parser.add_argument('-g', '--gpu', type=str, default=0, help='gpu id.')
arg_parser.add_argument('--mode', type=str, default='flow', help='mode for testing.')
arg_parser.add_argument('--mode', type=str, default='depth', help='mode for testing.')
arg_parser.add_argument('--task', type=str, default='kitti_depth', help='To test on which task, kitti_depth or kitti_flow or nyuv2 or demo')
arg_parser.add_argument('--image_path', type=str, default=None, help='Set this only when task==demo. Depth demo for single image.')
arg_parser.add_argument('--pretrained_model', type=str, default=None, help='directory for loading flow pretrained models')
Expand All @@ -231,7 +231,7 @@ def __init__(self):
for attr in list(cfg.keys()):
setattr(cfg_new, attr, cfg[attr])

if args.mode == 'flow_only':
if args.mode == 'flow':
model = Model_flow(cfg_new)
elif args.mode == 'depth' or args.mode == 'flow_3stage':
model = Model_depth_pose(cfg_new)
Expand Down

0 comments on commit 05c404f

Please sign in to comment.