# Enhance face details

Enhancing face details is needed when image is rather small or is heavily distorted with noise, compression artefacts or is blurred.

Face enhancement can be done when adding "face\_enhance" option to enhancements.

Type of the face enhancement can be selected by setting **face\_enhance\_parameters:type** parameter

```
"enhancements": ["face_enhance"],
"face_enhance_parameters": {
    "type": "beautify-real",
    "level": 0.8,
    "smoothing_level": 0.1
}
```

| Parameter       | Description                                                                   |
| --------------- | ----------------------------------------------------------------------------- |
| type            | Face enhancing algorithm, described below.                                    |
| level           | Level of face enhancement, values from 0.0 to 1.0. Default is 1.0 - 100%      |
| smothing\_level | Additional skin smoothing filter, values from 0.0 to 1.0. Default is 0.0 - 0% |

| type          | description                                                                                                                                                    |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| beautify-real | Enhances face in 2048x2048 resolution, suitable for higher resolution photos effect - real looking skin, no compression/diffusion artifacts. **Default value** |
| beautify      | Enhances face in 512x512 resolution, suitable for beautify effect - smooth skin, no visible artifacts, low resolution though.                                  |

Let's check the examples. Type beautify.

<figure><img src="/files/b8Tmxak9QNWqgrPRKy84" alt=""><figcaption><p>Input image</p></figcaption></figure>

<figure><img src="/files/u54HE21vUdYFnL3XIPro" alt=""><figcaption><p>Upscaled 4x with face_enhance option</p></figcaption></figure>

<figure><img src="/files/vZnhQrq4shKBj7Zlsf0B" alt=""><figcaption><p>Upscaled 4x without face_enhance option</p></figcaption></figure>

Let's correct generated image with 'beautify-real' type.

<figure><img src="/files/kUTPZZ8XdMwiQInnIcnP" alt=""><figcaption><p>Generated face</p></figcaption></figure>

<figure><img src="/files/ZrdAyg9jcow7OTO6LoZN" alt=""><figcaption><p>Face enhancement - beautify-real</p></figcaption></figure>

<figure><img src="/files/GhpGZNTPHPHE4L2ZHJou" alt=""><figcaption><p>Face enhancement - beautify</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.deep-image.ai/image-processing/enhance-face-details.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
