Beispiel #1
0
def preprocess_image(image,eval_image_size):
  preprocessing_name = FLAGS.preprocessing_name or FLAGS.model_name
  image_preprocessing_fn = preprocessing_factory.get_preprocessing(
          preprocessing_name, is_training=False)
  image = image_preprocessing_fn(image, eval_image_size, eval_image_size)
  return image
 def preprocess_image(image, result_size, preprocessing_name):
     image_preprocessing_fn = preprocessing_factory.get_preprocessing(
         preprocessing_name, is_training=False)
     image = image_preprocessing_fn(image, result_size, result_size)
     return image