mediapipe_model_maker.face_stylizer.face_stylizer.image_preprocessing.preprocess_for_eval

Preprocesses the given image for evaluation.

image 4-D Tensor of shape [batch, height, width, channels] or 3-D Tensor of shape [height, width, channels].
image_size image size.
resize_method if None, use bicubic.

A preprocessed image Tensor.