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
相关文章
相关标签/搜索