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


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

将下面箭头处:

改为:

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM