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()]
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.