medicaltorch
medicaltorch copied to clipboard
Issues and any examples for using 3D MRI Datasets and Transformation?
Hello all.
May I know if how to use the captioned functions that was recently added?
I could not find any examples or guide to follow. Very much appreciated!
Here is my code:
filenames = namedtuple('filenames', 'input_filename gt_filename') filenametuple = filenames(mri_input_filename, mri_gt_filename)
pair = mt_datasets.MRI3DSegmentationDataset(filenametuple)
and it gives out the following output:
338
339 def _load_filenames(self):
--> 340 for input_filename, gt_filename in self.filename_pairs: 341 segpair = SegmentationPair2D(input_filename, gt_filename, 342 self.cache, self.canonical)
ValueError: too many values to unpack (expected 2)