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

Error #2

Open
Abdullah-144 opened this issue Jan 5, 2022 · 2 comments
Open

Error #2

Abdullah-144 opened this issue Jan 5, 2022 · 2 comments

Comments

@Abdullah-144
Copy link

Great work !!
Can you help me?
It shows me this error:
IndexError: invalid index to scalar variable.

On line no. 30: output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]

@sj-on
Copy link
Owner

sj-on commented Jan 10, 2022

Great work !! Can you help me? It shows me this error: IndexError: invalid index to scalar variable.

On line no. 30: output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]

hey. though i am not sure, but it may be due to me hardcoding the path to
image
this thing. did you try modifying that to suit you?

anyway, i haven't looked at this project for about 1 year or more 😅😅, so i am really out of touch with what i did all that time back.

could this be of some help? https://stackoverflow.com/questions/69756781/hi-i-have-error-related-to-object-detection-project

@FireHead90544
Copy link

Great work !! Can you help me? It shows me this error: IndexError: invalid index to scalar variable.

On line no. 30: output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]

@Abdullah-144,
Try adding print statements before this line and try printing the value of layer_names and net.getUnconnectedOutLayers()

Please attach the screenshots of the same :D

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

3 participants