ssd_keras icon indicating copy to clipboard operation
ssd_keras copied to clipboard

list indices must be integers or slices, not tuple

Open jkllbn2563 opened this issue 6 years ago • 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

jkllbn2563 avatar Dec 01 '18 09:12 jkllbn2563

Same error

Ryo-Kawanami avatar Dec 30 '19 05:12 Ryo-Kawanami