// read each line of csv files into an instance of Subject
if self.is_training:
self.reader = ImageReader(SUPPORTED_INPUT)
else: // in the inference process use image input only
self.reader = ImageReader(["image"])
self.reader.initialise_reader(data_param, task_param)
After Change
else: // in the inference process use image input only
self.readers = [ImageReader(["image"], phase="test")]
for reader in self.readers:
reader.initialise_reader(data_param, task_param)
mean_var_normaliser = MeanVarNormalisationLayer(
image_name="image")
if self.net_param.histogram_ref_file: