slices = [dicom.read_file(path + '/' + s) for s in os.listdir(path)] FileNotFoundError: [WinError 3] 系统找不到指定的路径。

最近跟着kaggle做一个医疗项目,加载路径总是出错。

将下面箭头处:

改为:

path = os.path.join(data_dir, patient)
问题迎刃而解
上面的路径拼接方法可能是ipython的,具体知道的朋友可以留言

 

posted @ 2018-01-21 20:00  路在脚下丶  阅读(3109)  评论(0编辑  收藏  举报