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

yangxy/gpen:2684de9b

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
image
string
input image
task
string (enum)
Face Restoration

Options:

Face Restoration, Face Colorization, Face Inpainting

choose task type
output_individual
boolean
False
whether outputs individual enhanced faces, valid for Face Restoration. When set to true, a zip folder of all the enhanced faces in the input will be generated for download.
broken_image
boolean
True
whether the input image is broken, valid for Face Inpainting. When set to True, the output will be the 'fixed' image. When set to False, the image will randomly add brush strokes to simulate a broken image, and the output will be broken + fixed image

Output schema

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

Schema
{'items': {'properties': {'file': {'format': 'uri',
                                   'type': 'string',
                                   'x-order': 0},
                          'text': {'type': 'string', 'x-order': 1}},
           'type': 'object'},
 'type': 'array',
 'x-cog-array-type': 'iterator'}