rykov8/ssd_keras

list indices must be integers or slices, not tuple

jkllbn2563 opened this issue · 1 comments

for i, img in enumerate(images):
# 產生有框的 output files
create_overlay(img, results[i], voc_classes,
output_directory+"/{}.png".format(basename(os.path.splitext(imagesList[i])[0])))

TypeError Traceback (most recent call last)
in ()
29 # 產生有框的 output files
30 create_overlay(img, results[i], voc_classes,
---> 31 output_directory)
32
33

in create_overlay(self, img, results, plt_fname)
2 plt.clf()
3 # Parse the outputs.
----> 4 det_label = results[:, 0]
5 det_conf = results[:, 1]
6 det_xmin = results[:, 2]

TypeError: list indices must be integers or slices, not tuple
How to correct this?thank you

Same error