Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants