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 in yolo.ipynb #1

Open
atulraj85 opened this issue Mar 30, 2023 · 0 comments
Open

Index error in yolo.ipynb #1

atulraj85 opened this issue Mar 30, 2023 · 0 comments

Comments

@atulraj85
Copy link

IndexError Traceback (most recent call last)
Cell In[28], line 1
----> 1 outs = net.forward(get_output_layers(net))
2 outNames = net.getUnconnectedOutLayersNames()

Cell In[27], line 3, in get_output_layers(net)
1 def get_output_layers(net):
2 layer_names = net.getLayerNames()
----> 3 output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]
4 return output_layers

Cell In[27], line 3, in (.0)
1 def get_output_layers(net):
2 layer_names = net.getLayerNames()
----> 3 output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]
4 return output_layers

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

1 participant