You're looking at a specific version of this model. Jump to the model overview.

tencentarc /gfpgan:21c4d9d8

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
img
string
Input
version
string (enum)
v1.4

Options:

v1.2, v1.3, v1.4, RestoreFormer, CodeFormer

GFPGAN version. v1.3: better quality. v1.4: more details and better identity.
scale
number
2
Rescaling factor
weight
number
0.5

Max: 1

Weight, only for CodeFormer. 0 for better quality, 1 for better identity

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}