uber-research/DeepPruner

tuple indices must be integers or slices, not tuple

bucky999 opened this issue · 1 comments

When I run python submission_kitti.py, I get an error:
File "DeepPruner/deeppruner/submission_kitti.py", line 123, in main
disparity = disparity[top_pad:, :-left_pad].data.cpu().numpy()
TypeError: tuple indices must be integers or slices, not tuple

Hi @bucky999,
It seems like your config file hasn't been set correctly for evaluation.

"mode": "training", # for evaluation/ submission, change this to evaluation.

Please change the "mode" to "evaluation" to successfully run submission_kitti.py. Most probably, this should do the fix.