iArunava / YOLOv3-Object-Detection-with-OpenCV

This project implements a real-time image and video object detection classifier using pretrained yolov3 models.
MIT License
331 stars 172 forks source link

I not defined #21

Open whitestorm007 opened 1 year ago

whitestorm007 commented 1 year ago

File "/Users/jeetshekhaliya/Desktop/Deep Learning/Object Detaction/yolo.py", line 93, in layer_names = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/jeetshekhaliya/Desktop/Deep Learning/Object Detaction/yolo.py", line 93, in layer_names = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]

IndexError: invalid index to scalar variable.

Screenshot 2023-09-02 at 7 06 55 PM