Skip to content

Code error in yolov4_webcam.py, line 22 #2

Description

@fernandocostas

On line 22 of yolov4_webcam.py,
Where it says:
ln = [ln[i[0] - 1] for i in net.getUnconnectedOutLayers()]
It should say:
ln = [ln[i - 1] for i in net.getUnconnectedOutLayers()]

With that, you'd solve the current "IndexError: invalid index to scalar variable." error on that line.

Apart from that... Excelent articles with all-you-need-to-know explenations! THANKS! :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions