a0915f89cd6ff8b9d247d3ccef13b4c697d09d5c,niftynet/application/segmentation_application.py,SegmentationApplication,initialise_dataset_loader,#SegmentationApplication#Any#Any#Any#,59

Before Change



        // read each line of csv files into an instance of Subject
        if self.is_training:
            self.readers = [ImageReader(SUPPORTED_INPUT, "train")]
            if self.has_validation_data and self.action_param.validate_every_n:
                self.readers.append(ImageReader(SUPPORTED_INPUT, "validation"))
        else:  // in the inference process use image input only
            self.readers = [ImageReader(["image"], "inference")]
        for reader in self.readers:
            reader.initialise_reader(data_param, task_param, system_param)

        if self.net_param.normalise_foreground_only:
            foreground_masking_layer = BinaryMaskingLayer(
                type_str=self.net_param.foreground_type,
                multimod_fusion=self.net_param.multimod_foreground_type,

After Change


            self.readers = [reader_train]
            if self.has_validation_data and self.action_param.validate_every_n:
                reader_valid = ImageReader(SUPPORTED_INPUT)
                file_list = data_partitioner.get_file_list(VALID)
                reader_valid.initialise_reader(data_param, task_param, file_list)
                self.readers.append(reader_valid)
        else:  // in the inference process use image input only
            self.readers = [ImageReader(["image"], "inference")]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: NifTK/NiftyNet
Commit Name: a0915f89cd6ff8b9d247d3ccef13b4c697d09d5c
Time: 2017-11-08
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/application/segmentation_application.py
Class Name: SegmentationApplication
Method Name: initialise_dataset_loader


Project Name: NifTK/NiftyNet
Commit Name: 733496571cb059669deba20ca719d01796ea06fd
Time: 2017-11-10
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/application/gan_application.py
Class Name: GANApplication
Method Name: initialise_dataset_loader


Project Name: NifTK/NiftyNet
Commit Name: 733496571cb059669deba20ca719d01796ea06fd
Time: 2017-11-10
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/application/regression_application.py
Class Name: RegressionApplication
Method Name: initialise_dataset_loader