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

How do we create a data interface without segmentations for prediction only? [Help Wanted] #164

Open
joaomamede opened this issue Feb 23, 2023 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@joaomamede
Copy link

joaomamede commented Feb 23, 2023

Hi all, I tried to create a Data_IO without segmentations.nii.gz and only the imaging data, but it fails when the file is not present.

I trained the model already, it's perfect I want to use it for some research. But I always need to create a fake empty "segmentation.nii.gz" to be able to simple predict from the images.

Any hints?
Thanks for MIScnn!

from miscnn.data_loading.interfaces.nifti_io \
     import NIFTI_interface
from miscnn.data_loading.data_io import Data_IO

interface = NIFTI_interface( 
                            channels=1, 
                            classes=4,
                            three_dim=True,
                            )


data_path = "/home/jmamede/Data/monkeys/NEW_trial_files/data/"
batch_path="/home/jmamede/Data/monkeys/batches")
data_io = Data_IO(interface, data_path,
                  output_path=data_path+'/predictions'
                 )
@joaomamede joaomamede changed the title How do we create a data interface without segmentations for prediction only? How do we create a data interface without segmentations for prediction only? [Help Wanted] Feb 23, 2023
@muellerdo muellerdo added the help wanted Extra attention is needed label Feb 25, 2023
@muellerdo muellerdo self-assigned this Feb 25, 2023
@muellerdo
Copy link
Member

Hey @joaomamede,

always happy to hear that you can utilize MIScnn in your research! :)

Can you provide the error message you get if you do not create a fake segmentation.nii.gz?

Normally, you should be able to just call the DataIO on only testing data like the following file structure:

ct_scans/
   scan_a/
      imaging.nii.gz
   scan_b/
      imaging.nii.gz
   scan_c/
      imaging.nii.gz

Cheers,
Dominik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants