Exemplo n.º 1
0
 def preprocess_image(cls, image, is_training, normalize_image=True):
     return InceptionPreprocessing.preprocess_image(
         image=image,
         height=cls.INPUT_SHAPE[0],
         width=cls.INPUT_SHAPE[1],
         standardize_image_for_eval=normalize_image,
         is_training=is_training)
Exemplo n.º 2
0
 def standardize_tensor(input_tensor):
     return InceptionPreprocessing.standardize_image(input_tensor)