catio-apps/cog-faceswap-catio
Public
8.8K
runs
Run catio-apps/cog-faceswap-catio 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 |
|---|---|---|---|
| target_image |
string
|
Target image to apply face swap to
|
|
| source_image |
string
|
Source image to get the face from
|
|
| enable_face_swap |
boolean
|
True
|
Enable face_swap
|
| threshold_face_swap |
number
|
1
Max: 1 |
Threshold for face detection
|
| fusion_alpha |
number
|
0.9
Max: 1 |
Face fusion strength
|
| enhance_face |
boolean
|
True
|
Enable additional face enhancement
|
| use_advanced_blending |
boolean
|
True
|
Use advanced blending techniques
|
| output_format |
None
|
png
|
Format of the output images
|
| output_quality |
integer
|
80
Min: 1 Max: 100 |
Set the quality of the output image for jpg and webp (1-100)
|
{
"type": "object",
"title": "Input",
"required": [
"target_image",
"source_image"
],
"properties": {
"enhance_face": {
"type": "boolean",
"title": "Enhance Face",
"default": true,
"x-order": 5,
"description": "Enable additional face enhancement"
},
"fusion_alpha": {
"type": "number",
"title": "Fusion Alpha",
"default": 0.9,
"maximum": 1,
"minimum": 0,
"x-order": 4,
"description": "Face fusion strength"
},
"source_image": {
"type": "string",
"title": "Source Image",
"format": "uri",
"x-order": 1,
"description": "Source image to get the face from"
},
"target_image": {
"type": "string",
"title": "Target Image",
"format": "uri",
"x-order": 0,
"description": "Target image to apply face swap to"
},
"output_format": {
"enum": [
"webp",
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Format of the output images",
"default": "png",
"x-order": 7
},
"output_quality": {
"type": "integer",
"title": "Output Quality",
"default": 80,
"maximum": 100,
"minimum": 1,
"x-order": 8,
"description": "Set the quality of the output image for jpg and webp (1-100)"
},
"enable_face_swap": {
"type": "boolean",
"title": "Enable Face Swap",
"default": true,
"x-order": 2,
"description": "Enable face_swap"
},
"threshold_face_swap": {
"type": "number",
"title": "Threshold Face Swap",
"default": 1,
"maximum": 1,
"minimum": 0,
"x-order": 3,
"description": "Threshold for face detection"
},
"use_advanced_blending": {
"type": "boolean",
"title": "Use Advanced Blending",
"default": true,
"x-order": 6,
"description": "Use advanced blending techniques"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}