def get_training_data(self): fs = FeatureSet.image_set(self.image_set, sequential_order=self.sequential_order, shuffle=self.shuffle) fs = fs.transform(MergeFeatureLabelImagePreprocessing()) fs = fs.transform(ImageFeatureToSample()) return fs
def get_validation_data(self): if self.validation_image_set is not None: fs = FeatureSet.image_set(self.validation_image_set, sequential_order=self.sequential_order, shuffle=self.shuffle) fs = fs.transform(MergeFeatureLabelImagePreprocessing()) fs = fs.transform(ImageFeatureToSample()) fs = fs.transform(SampleToMiniBatch(self.batch_size)) return fs return None
def get_validation_data(self): if self.validation_image_set is not None: fs = FeatureSet.image_set( self.validation_image_set, sequential_order=self.sequential_order, shuffle=self.shuffle).transform([ MergeFeatureLabelImagePreprocessing(), ImageFeatureToSample() ]) return fs return None