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

Index error is line 73 of main.py #4

Open
souktik opened this issue May 13, 2023 · 1 comment
Open

Index error is line 73 of main.py #4

souktik opened this issue May 13, 2023 · 1 comment

Comments

@souktik
Copy link

souktik commented May 13, 2023

image
Please solve this error

@sajidjavid222
Copy link

YOLO Object Detection

layer_names = net.getLayerNames() output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]

Don't need to indexing i in layer_names[i[0] - 1] . Just remove it and do layer_names[i - 1]

layer_names = net.getLayerNames() output_layers = [layer_names[i - 1] for i in net.getUnconnectedOutLayers()]

It Work For Me

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