pytorch中from torchkbnufft import MriSenseNufft,AdjMriSenseNufft,KbNufft,AdjKbNuff 等模块无法找到的解决办法

导入

 from torchkbnufft import MriSenseNufft,AdjMriSenseNufft,KbNufft,AdjKbNuff

from torchkbnufft.nufft.toep_functions import calc_toep_kernel

等失败,原因是当前的torchkbnufft版本过高。

解决办法:卸载当前版本的torchkbnufft库,安装低版本的torchkbnufft库。

推荐安装0.3.4版本的torchkbnufft库可用解决该问题。

步骤、1:在python终端中输入命令:activate pytorch       进入pytorch环境

           2:输入命令:pip uninstall torchkbnufft         卸载当前版本的torchkbnufft库

           3:输入命令:pip install torchkbnufft==0.3.4    安装当前版本的torchkbnufft库

安装完成后,就可以解决之前的问题。

你可能感兴趣的:(pytorch,深度学习,python,人工智能)