コード例 #1
0
    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
コード例 #2
0
ファイル: tf_dataset.py プロジェクト: apsaltis/analytics-zoo
 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
コード例 #3
0
 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