mediapipe_model_maker.face_stylizer.face_stylizer.image_preprocessing.preprocess_for_train

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 resize method. If none, use bicubic.

A preprocessed image Tensor.