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

mask number must be 3 ? #19

Open
Ng-ms opened this issue Feb 24, 2019 · 4 comments
Open

mask number must be 3 ? #19

Ng-ms opened this issue Feb 24, 2019 · 4 comments
Labels
question Further information is requested

Comments

@Ng-ms
Copy link

Ng-ms commented Feb 24, 2019

i have one folder for mask but it gives me error FileNotFoundError: No such file or no access: 'C:\~~~\nii format\site1-sc01-mask-r3.nii.gz'

what i should change in
train_dataset = mt_datasets.SCGMChallenge2DTrain(root_dir=ROOT_DIR_GMCHALLENGE, transform=composed_transform)
to make it work with one mask ?

@Ng-ms
Copy link
Author

Ng-ms commented Feb 25, 2019

is the code written for one dataset?
my data has one mask for each image and it is asking for the other three , is there a way to change to make it work on my dataset ?

@perone
Copy link
Owner

perone commented Feb 26, 2019

Hi @Najat91, the class SCGMChallenge2DTrain was made to load data from a specific dataset (the SCGM Challenge), if you want to load your own data, you should use the class MRI2DSegmentationDataset where you just have to pass a list of tuples in the format (input filename, ground truth filename).

@perone perone added the question Further information is requested label Feb 26, 2019
@MohitTare
Copy link
Contributor

Hi @Najat91 , As discussed over LinkedIn and confirmed by @perone , you can use the above method to load custom dataset. In other specific cases you can use nibabel and nilearn libraries & create your own custom data-loaders in PyTorch.

@asciidiego
Copy link
Contributor

Maybe this issue should be closed?

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

No branches or pull requests

4 participants