|
老師您好 我想請問在本書中第五章中使用detect1py程式碼為何會出現以下的報錯? D:\darknetYolo\darknet>detect1.py Traceback (most recent call last): File "D:\darknetYolo\darknet\detect1.py", line 7, in <module> output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()] #輸出圖形規格 File "D:\darknetYolo\darknet\detect1.py", line 7, in <listcomp> output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()] #輸出圖形規格 IndexError: invalid index to scalar variable.
謝謝 |