MemoryError的處理方式

  在作項目時,須要加載40442張圖片,出現內存錯誤:MemoryError: Unable to allocate 4.34 GiB for an array with shape (40442, 80, 60, 3) and data type float64。錯誤源代碼:html data = np.array(data, dtype="float") / 255.0# 默認float64
相關文章
相關標籤/搜索