// read each line of csv files into an instance of Subject
if self.is_training:
self.readers = [ImageReader(["image", "conditioning"])]
if self.action_param.validate_every_n > 0:
self.readers.append(ImageReader(["image", "conditioning"]))
else: // in the inference process use image input only
self.readers = [ImageReader(["image"])]
file_list = data_partitioner.get_file_list()
for reader in self.readers:
reader.initialise(data_param, task_param, file_list)
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,