Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于BRATSDataset3D问题 #67

Open
NickWang1122 opened this issue Mar 29, 2023 · 3 comments
Open

关于BRATSDataset3D问题 #67

NickWang1122 opened this issue Mar 29, 2023 · 3 comments

Comments

@NickWang1122
Copy link

BRATSDataset3D为什么会有两个len函数
def len(self):
return len(self.database) * 155
def len(self):
return len(self. Database)

@NickWang1122
Copy link
Author

按照您源代码的想法应该是得到所有样本数*155张切片送入网络,但是实际上送入网络的只有样本数个数的数据,应该是后面的len函数覆盖了前面len(self. Database) * 155

@WuJunde
Copy link
Collaborator

WuJunde commented Mar 29, 2023

It should be len(self.database) * 155. will be revised in the coming version

@saisusmitha
Copy link

@WuJunde Kindly let me know how many images are in the training set, also in bratsdataloader.py
n = x // 155 #quotient
slice = x % 155 #remainder
o = torch.tensor(nib_img.get_fdata())[:,:,slice]

what does this slice usage say? only one slice out of 155 is used for training. Kindly explain the data loader as using the given loader once after data is loaded I saved the images all 5 images(t1,t2...) as png, they look wrong. kindly explain about how you used 240x240x155 original image shape, what pre-processing is done and where and how to find the hd95, jaccard,dice scores?

BraTS20_Training_333input_image_00
BraTS20_Training_333input_image_01
BraTS20_Training_333input_image_02
BraTS20_Training_333input_image_03
BraTS20_Training_333input_image_04

Kindly let me know where I am going wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants