You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
╰─$ py opencv_dnn_infer.py --img-path /home/<name>/Pictures/Webcam/2021-11-12-101657.jpg
Traceback (most recent call last):
File "opencv_dnn_infer.py", line 117, in <module>
run_on_video(Net, video_path, conf_thresh=0.5)
File "opencv_dnn_infer.py", line 89, in run_on_video
img_raw = inference(Net, img_raw, target_shape=(260, 260), conf_thresh=conf_thresh)
File "opencv_dnn_infer.py", line 47, in inference
y_bboxes_output, y_cls_output = net.forward(getOutputsNames(net))
File "opencv_dnn_infer.py", line 41, in getOutputsNames
return [layersNames[i[0] - 1] for i in net.getUnconnectedOutLayers()]
File "opencv_dnn_infer.py", line 41, in <listcomp>
return [layersNames[i[0] - 1] for i in net.getUnconnectedOutLayers()]
IndexError: invalid index to scalar variable.
help plz.
The text was updated successfully, but these errors were encountered:
i tried running it and got the following error.
help plz.
The text was updated successfully, but these errors were encountered: