cottom/portrait-retouch
Retouches a portrait's skin without moving its tone: frequency separation over the person's own skin, never the lightness band, judged by CIEDE2000, hue, chroma and a face-grid check.
Run cottom/portrait-retouch with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
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
|
The portrait to retouch.
|
|
| smoothing |
integer
|
30
Max: 100 |
Softens blemishes and fine texture.
|
| texture |
integer
|
40
Max: 100 |
Brings fine skin texture back.
|
| clarity |
integer
|
20
Max: 100 |
Adds contrast to the skin's detail.
|
| even_tone |
integer
|
0
Max: 100 |
Evens blotches and redness toward the person's own colour.
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "The portrait to retouch."
},
"clarity": {
"type": "integer",
"title": "Clarity",
"default": 20,
"maximum": 100,
"minimum": 0,
"x-order": 3,
"description": "Adds contrast to the skin's detail."
},
"texture": {
"type": "integer",
"title": "Texture",
"default": 40,
"maximum": 100,
"minimum": 0,
"x-order": 2,
"description": "Brings fine skin texture back."
},
"even_tone": {
"type": "integer",
"title": "Even Tone",
"default": 0,
"maximum": 100,
"minimum": 0,
"x-order": 4,
"description": "Evens blotches and redness toward the person's own colour."
},
"smoothing": {
"type": "integer",
"title": "Smoothing",
"default": 30,
"maximum": 100,
"minimum": 0,
"x-order": 1,
"description": "Softens blemishes and fine texture."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}