Skip to main content
Version: 5.x
Supported on
Snapchat

ML Face Effect Generation

ML Face Effects aim to create stylization effects for the face, from two types of inputs: text descriptions, and image samples.

Getting Started

Launching Face ML Plugin

  1. Navigate to the GenAI Suite in the top right corner of Lens Studio.

  2. In the panel, select Head Morph.

User Interface Overview

  • Create new Effect Toolbar: Contains tools for creating and editing Effects.

  • Gallery: Displays all Effects you created and their Statuses.

  • Search and Filters: Use search and filters to find the desired effect.

Creating an Effect

Presets

  • Beauty: This preset is ideal for makeup applications, beauty morphings, and beautification effects. It enhances facial features to create a polished, aesthetically pleasing look, perfect for cosmetic transformations and glamorous enhancements.

  • Emotions: This preset is perfect for capturing and enhancing various facial expressions and emotional states. It works best for generating expressive effects, mood transformations, and emotional highlights, allowing for vivid portrayal of feelings such as happiness, sadness, anger, and surprise.

  • Creepy: This preset is designed to create eerie, unsettling, and spooky effects. It works best for generating horror-themed transformations, horror facial morphings, perfect for creating a chilling and haunting atmosphere.

  • Cartoon: This preset is ideal for transforming faces into whimsical, animated styles. It works best for generating playful and colorful cartoon effects, creating a fun and lighthearted look with exaggerated features, perfect for lively characters.

Text Prompt

  • **Input your own **Prompt:**** Enter the prompt into a prompt field.
  • Use the Surprise me feature: Tap Surprise me to use a random prompt.

Image Prompt

  • Input your own image: Upload the image from your computer.

Settings

  • Effect Intensity: The higher the setting, the more intense the final style will be.
  • User Identity: This setting aims to preserve the user's identity features.
    • Off: The user's identity features are not preserved.
    • Low: The intensity of the final stylized effect is at its lowest (less stylization).
    • Mid: Strikes a balance in terms of intensity.
    • Max: The intensity of the final stylized effect is at its highest (more stylization).
  • Use Skin Texture (On/Off): When enabled, this makes the output style resemble the original image more closely. It affects everything, including the background, eyes, and skin texture. The trade-off is higher resolution at the cost of a weaker effect.
    • Use Skin Tone (On/Off): This setting allows the skin tone of the target style to match the skin tone of the original domain. It can be turned on or off according to the desired level of stylization.

Advanced User Identity Preservation

  • Eyes
    • Off: The user's eye features are not preserved.
    • Low: The intensity of the final stylized effect on the eyes is at its lowest (less stylization).
    • Mid: Strikes a balance in terms of intensity for the eyes.
    • Max: The intensity of the final stylized effect on the eyes is at its highest (more stylization).
  • Mouth
    • Off: The user's mouth features are not preserved.
    • Low: The intensity of the final stylized effect on the mouth is at its lowest (less stylization).
    • Mid: Strikes a balance in terms of intensity for the mouth.
    • Max: The intensity of the final stylized effect on the mouth is at its highest (more stylization).
  • Nose
    • Off: The user's nose features are not preserved.
    • Max: The intensity of the final stylized effect on the nose is at its highest (more stylization).
  • Ears
    • Off: The user's ear features are not preserved.
    • Low: The intensity of the final stylized effect on the ears is at its lowest (less stylization).
    • Mid: Strikes a balance in terms of intensity for the ears.
    • Max: The intensity of the final stylized effect on the ears is at its highest (more stylization).
  • Brows
    • Off: The user's brow features are not preserved.
    • Max: The intensity of the final stylized effect on the brows is at its highest (more stylization).
  • Face Contour
    • Off: The user's face contour features are not preserved.
    • Max: The intensity of the final stylized effect on the face contour is at its highest (more stylization).
  • Hair
    • Off: The user's hair features are not preserved.
    • Low: The intensity of the final stylized effect on the hair is at its lowest (less stylization).
    • Mid: Strikes a balance in terms of intensity for the hair.
    • Max: The intensity of the final stylized effect on the hair is at its highest (more stylization).

Generation

  • Press Generate when you are ready.

  • Check upon the Status bar for info.

ML Face Effect Preview and Editing

Effect preview

  • You can review how the effect is applied to various sample images of models.
  • You can adjust the prompt to edit the Effect.
  • Press Update Effect and wait for the result. The new effect will be created and displayed in the Gallery view.

Delete Effect

  • You can also delete the Effect

Create a Model

Import to Project

  • Press Create Model Button to start creating a model for your Effect.

  • The message indicating progress of creation will appear on a progress bar.

Save and Export You

  • Model is ready message will appear once a model is trained.

Create a Lens

Import to Project

  • Press Import to Project Button to start creating a Lens with your Effect.

Preview the Result

You can see a preview of the Lens your are building in the preview panel.

Once satisfied with the result save your project and push the Lens for testing on Snapchat. Take a look at the Pairing to Snapchat guide to test your Lens on device, and the Publishing guide to learn more about sharing your creation.

Image Tips and Hacks

Number of images

  • Using multiple but consistent images can create a more intense and fantastical effect with the same parameters.

    • Example:

Copy style of art

  • To capture and stylize the effect with a specific vibe, you can also use images that embody the desired style, even if they don't feature characters. For instance, nature scenes or still life images can be effective. In such cases, use the cartoon preset and adjust the effect intensity. Setting the intensity to 1 will give you the most intense effect.

    • Example:

Quality

  • Try to upload high-quality reference images. The quality of the image can highly influence the quality of the effect. For example: if the reference image is small and blurry, the effect may have unexpected results.
Effect with Low quality referenceEffect with High quality reference

Light

  • Make sure the lighting on the picture is good. The skin color should look natural, the structure of the face visible. It`s better to not have any contrast shadows or artifacts on the face.
Challenging lightingSimple lighting

Scale

  • Try to make the face take up the 2/3 of the frame, the shoulders are not necessary but they can help with the scale of the head relative to the body.
Challenging ScaleGood Scale

Prompt Tips and Hacks

Descriptors

  • Be specifiс: provide a detailed description. You can clarify what you want to have with just a couple of words.

    Prompt: baby elfPrompt: baby face, baby elf, elf ears, big dark eyes, small mouth, big lips, smile, elf, eyes make-up, big lashes, freckles, sunny skin, glossy lips, huge lips, girl
  • Use adjectives: - try to include adjectives describing the face.

    Prompt: attractive chubby face
  • Describe parts of the face: try to describe changes on the face you want to achieve.

    Prompt: huge head, big cheeks, big lips, happyPrompt: baby, big fat face, cute baby, big eyes, smile, small mouth, big lips, child face
  • Describe the appearance of the person: you can describe how the person should look in generated effect.

    Prompt: metalhead person in california 80s

Advanced Prompts

  • Special words.
    • High quality: Ensures the generated face is clear, sharp, and visually appealing.
    • Detailed: Emphasizes small, intricate facial features.
    • Flat shading: Uses a shading technique without gradients for a stylized, simplistic look.
    • HD: Combines high resolution and extreme detail for a realistic, impressive face.
    • Maximalistic: Rich in detail and complexity, with elaborate features.
    • High definition: Produces a high-resolution face with enhanced clarity and detail.
    • Fine luster: Adds shine or gloss, giving the face a polished appearance.
  • You can increase/decrease weight (importance) of certain words/phrases/characters by adding certain symbols to the prompt. The rules are as follows
    • (word) - increases importance of the word by a multiplier of 1.1
    • [word] - decreases importance of the word by a multiplier of 1.1
    • (word:float_number) - changes importance of the “word” by a multiplier of float_number ([0 .. +Infinity])
    • Examples:
      • (Old) person - Make the person slightly older
      • Bright [sunny] (autumn:2.0) day - Make the day slightly less sunny but much more “autumn-y”
      • A (dark blue:0.5) suit - Make the suit twice as bright as before
Was this page helpful?
Yes
No