提示 " Allocation of XXXXXXXX exceeds 10% of system memory."怎么办?
【摘要】 复现图像配准的SOTA算法VoxelMorph时,很可能提示 " Allocation of XXXXXXXX exceeds 10% of system memory."此时怎么办呢?解决方案:进入CMD命令行输入“D:”,回车输入“cd D:\ImageRegisteration\Code\voxelmorph-master”,cd的位置为复现代码的根目录pip install neur...
复现图像配准的SOTA算法VoxelMorph时,很可能提示 " Allocation of XXXXXXXX exceeds 10% of system memory."
此时怎么办呢?
解决方案:
进入CMD命令行
输入“D:”,回车
输入“cd D:\ImageRegisteration\Code\voxelmorph-master”,cd的位置为复现代码的根目录
pip install neuron
给NEURON的报错的文件里的第一行添加from __future__ import print_function # If code has to work in Python 2 and 3!
python3 D:\ImageRegisteration\Code\voxelmorph-master\src\register.py D:\ImageRegisteration\Code\voxelmorph-master\data\test_vol.nii.gz D:\ImageRegisteration\Code\voxelmorph-master\data\atlas_norm.nii.gz --out_img D:\ImageRegisteration\Code\voxelmorph-master\data\out.nii.gz --model_file ../models/cvpr2018_vm2_cc.h5
(注意,上面是python3,不是python。否则会报错)
运行后,可以看到data\下出现了out.nii.gz(所需结果)
【声明】本内容来自华为云开发者社区博主,不代表华为云及华为云开发者社区的观点和立场。转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息,否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
作者其他文章
评论(0)