コード例 #1
0
 def test_create_image_config(self):
     from zoo.models.image.common.image_config import ImageConfigure
     from zoo.feature.image.imagePreprocessing import ImageResize
     from zoo.feature.common import ChainedPreprocessing
     ImageConfigure(pre_processor=ImageResize(224, 224))
     ImageConfigure(pre_processor=ChainedPreprocessing(
         [ImageResize(224, 224),
          ImageResize(224, 224)]))
コード例 #2
0
 def get_config(self):
     config = callBigDlFunc(self.bigdl_type, "getImageConfig", self.value)
     return ImageConfigure(jvalue=config)