close

could not broadcast input array from shape (26) into shape (26,1)

此類錯誤生在數組變形的時候

問題:大多是因為來源數組不一致所造成的

衍生問題:但是當資料一大堆的時候怎麼樣檢查出哪幾筆資料不一致好像有點困難

解法:我主要是在處理圖片讀入時會用到這個函數,問題大多發生在圖片通道數不一致,故採用灰階讀取解決通道數不同的問題

IndexError:list index out of range

list[index]超出範圍

或是list[0]就是空的

這個網址提到的方法或許可以解決問題 https://stackoverflow.com/questions/41665398/index-error-index-3-is-out-of-bounds-for-axis-1-with-size-3

 


arrow
arrow
    文章標籤
    python 問題 通道 shape
    全站熱搜

    低階ㄇㄋ 發表在 痞客邦 留言(0) 人氣()