tuple indices must be integers or slices, not tuple
bucky999 opened this issue · 1 comments
bucky999 commented
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
ShivamDuggal4 commented
Hi @bucky999,
It seems like your config file hasn't been set correctly for evaluation.
DeepPruner/deeppruner/models/config.py
Line 31 in b13a254
Please change the "mode"
to "evaluation"
to successfully run submission_kitti.py
. Most probably, this should do the fix.