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.

Input image
Upscaled 4x with face_enhance option
Upscaled 4x without face_enhance option

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

Generated face
Face enhancement - beautify-real
Face enhancement - beautify

Last updated