美文网首页
MemoryError: Unable to allocate

MemoryError: Unable to allocate

作者: 逍遥_yjz | 来源:发表于2021-02-24 09:08 被阅读0次

    训练模型时候报错:
    MemoryError: Unable to allocate 4.87 GiB for an array with shape (368, 368, 4831) and data type float64
    解决办法
    因为运行文件所在的磁盘分配内存不够问题造成的,解决方法如下:打开我的电脑-右键属性-高级-性能设置-选择高级-更改-点击E盘-点击自定义大小-设置分配内存,我选择6G,6144kb.点击确定完成,再次运行文件,问题解决!


    最后我改成6489至12489

    相关文章

      网友评论

          本文标题:MemoryError: Unable to allocate

          本文链接:https://www.haomeiwen.com/subject/xxvjfltx.html