Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

list indices must be integers or slices, not tuple #152

Open
jkllbn2563 opened this issue Dec 1, 2018 · 1 comment
Open

list indices must be integers or slices, not tuple #152

jkllbn2563 opened this issue Dec 1, 2018 · 1 comment

Comments

@jkllbn2563
Copy link

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

@Ryo-Kawanami
Copy link

Same error

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants