medicaltorch icon indicating copy to clipboard operation
medicaltorch copied to clipboard

Issues and any examples for using 3D MRI Datasets and Transformation?

Open arvinhui opened this issue 4 years ago • 0 comments

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)

arvinhui avatar Dec 08 '19 14:12 arvinhui