mahyarnajibi/SNIPER

TypeError: list indices must be integers or slices, not tuple

daiwc opened this issue · 0 comments

daiwc commented

I have met this error when runing "python demo.py", have anybody meet the same problem and give some ideas? thank you so much!

Traceback (most recent call last):
File "demo.py", line 118, in
main()
File "demo.py", line 114, in main
vis_name='{}_detections'.format(file_name), vis_ext=out_extension)
File "lib/inference.py", line 188, in aggregate
image_scores = np.hstack([all_boxes[j][i][:, -1] for j in range(1, self.num_classes)])
File "lib/inference.py", line 188, in
image_scores = np.hstack([all_boxes[j][i][:, -1] for j in range(1, self.num_classes)])
TypeError: list indices must be integers or slices, not tuple