New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
内存分配不够,Unable to allocate 29.0 GiB for an array with shape (7790126400,) and data type float32 #56
Comments
请问是怎么解决的啊?谢谢! |
我的内存是16G,而这里投入的训练数据是30G,所以就超内存了,目前除了用更大的内存外还没找到其他方法。 |
好的,谢谢啦 |
np.load函数有一个mmap_mode参数,可以不用将数据全部加载。 Line 54 in 953c14f
|
感谢! |
谢谢,处理好了 `for dataset in datasets:
|
这个好像增大电脑的虚拟内存和pycharm可用的内存后也可以处理。 |
当运行python data_gen/gen_bone_data.py这据代码时,会在
File "data_gen/gen_bone_data.py", line 62, in
data = np.load('./data/{}/{}_data.npy'.format(dataset, set))
处遇到
MemoryError: Unable to allocate 29.0 GiB for an array with shape (7790126400,) and data type float32
这样的错误,请问该如何解决呢?
The text was updated successfully, but these errors were encountered: