mediapipe_model_maker.face_stylizer.ModelOptions

Configurable model options for face stylizer models.

swap_layers The layers of feature to be interpolated between encoding features and StyleGAN input features.
alpha Weighting coefficient of style latent for swapping layer interpolation. Its valid range is [0, 1]. The greater weight means stronger style is applied to the output image. Expect to set it to a small value, i.e. < 0.1.
perception_loss_weight Weighting coefficients of image perception quality loss.
adv_loss_weight Weighting coeffcieint of adversarial loss versus image perceptual quality loss. It expects a small value, i.e. < 0.2.

Methods

__eq__

adv_loss_weight 0.2
alpha 0.1