-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
after downloading yolo-obj.weights from the link in your README.md and running either of the examples I get the following error.
Traceback (most recent call last):
File ".../DoorDetector/detection_image.py", line 89, in <module>
outs = net.forward(get_output_layers(net))
^^^^^^^^^^^^^^^^^^^^^^
File ".../DoorDetector/detection_image.py", line 31, in get_output_layers
output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../DoorDetector/detection_image.py", line 31, in <listcomp>
output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]
~^^^
IndexError: invalid index to scalar variable.I tried opencv-python 3.4.18 and 4.8.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels