你好,我的数据是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):#少了一个下划线
你好,我的数据是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):#少了一个下划线