Skip to content

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

@joaomamede

Description

@joaomamede

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'
                 )

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions