MontaEllis / Pytorch-Medical-Segmentation

This repository is an unoffical PyTorch implementation of Medical segmentation in 2D and 3D.
MIT License
860 stars 196 forks source link

metrics.py加载数据目录的构成 #35

Closed qianjinfighter closed 2 years ago

qianjinfighter commented 2 years ago

你好,我的数据是3d的,后缀nii.gz,请问metrics.py加载数据目录的构成应该是什么样的? 应该没问题,我是在这一行出错的,for i,subj in enumerate(training_set.subjects): 报错为: File "/home/carrie/PycharmProjects/Pytorch_Medical_Segmentation/metrics.py", line 55, in for i,subj in enumerate(training_set.subjects):#training_set.subjects AttributeError: 'SubjectsDataset' object has no attribute 'subjects' 可以再readme里加一个metrics运行示例吗? 可以了,这样改 for i,subj in enumerate(training_set._subjects):#少了一个下划线