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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-07 UTC."],[],[],null,["# mediapipe_model_maker.face_stylizer.ModelOptions\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/mediapipe/blob/master/mediapipe/model_maker/python/vision/face_stylizer/model_options.py#L28-L52) |\n\nConfigurable model options for face stylizer models.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`mediapipe_model_maker.face_stylizer.face_stylizer.face_stylizer_options.model_opt.FaceStylizerModelOptions`](https://www.tensorflow.org/mediapipe/api/solutions/python/mediapipe_model_maker/face_stylizer/ModelOptions), [`mediapipe_model_maker.face_stylizer.face_stylizer.model_opt.FaceStylizerModelOptions`](https://www.tensorflow.org/mediapipe/api/solutions/python/mediapipe_model_maker/face_stylizer/ModelOptions), [`mediapipe_model_maker.face_stylizer.face_stylizer_options.model_opt.FaceStylizerModelOptions`](https://www.tensorflow.org/mediapipe/api/solutions/python/mediapipe_model_maker/face_stylizer/ModelOptions), [`mediapipe_model_maker.face_stylizer.model_options.FaceStylizerModelOptions`](https://www.tensorflow.org/mediapipe/api/solutions/python/mediapipe_model_maker/face_stylizer/ModelOptions)\n\n\u003cbr /\u003e\n\n mediapipe_model_maker.face_stylizer.ModelOptions(\n swap_layers: Sequence[int] = dataclasses.field(default_factory=lambda : [4, 5, 10, 11]),\n alpha: float = 0.1,\n perception_loss_weight: ../../mediapipe_model_maker/face_stylizer/face_stylizer/loss_functions/PerceptualLossWeight = dataclasses.field(default_factory=_default_perceptual_quality_loss_weight),\n adv_loss_weight: float = 0.2\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `swap_layers` | The layers of feature to be interpolated between encoding features and StyleGAN input features. |\n| `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. \\\u003c 0.1. |\n| `perception_loss_weight` | Weighting coefficients of image perception quality loss. |\n| `adv_loss_weight` | Weighting coeffcieint of adversarial loss versus image perceptual quality loss. It expects a small value, i.e. \\\u003c 0.2. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `__eq__`\n\n __eq__(\n other\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|-----------------|-------|\n| adv_loss_weight | `0.2` |\n| alpha | `0.1` |\n\n\u003cbr /\u003e"]]