【发布时间】:2021-04-26 22:10:40
【问题描述】:
我正在尝试使用库 Deepbrain 从我正在使用的代码的整个 MRI 扫描中提取大脑
def Reduce_Brain(img):
img_data = img.get_fdata()
prob = ext.run(img)
print(prob)
img = nib.load('ADNI_002_S_0295.nii')
Reduce_Brain(img)
但是,当我尝试这个时,我得到了错误模块 'tensorflow' has no attribute 'Session' 我发现这是与错误版本的 tensorflow 相关的错误,因此我按照另一个问题中的说明更改了库代码(见下文)。但这产生了更多错误,例如模块“tensorflow”没有属性“gfile”
Tensorflow 2.0 - AttributeError: module 'tensorflow' has no attribute 'Session'
【问题讨论】:
标签: python tensorflow