enhance-replicate/faceswap_photo_multi_0.1
Public
14.3K
runs
Run enhance-replicate/faceswap_photo_multi_0.1 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 |
|---|---|---|---|
| img |
array
|
Primary source image path
|
|
| ping |
boolean
|
False
|
Warm GPU briefly and return no output
|
| seed |
integer
|
42
|
Random seed
|
| album |
string
|
Selected album name
|
|
| token |
string
|
|
Hugging Face token
|
| enhance |
boolean
|
True
|
Apply face enhancement
|
| repo_id |
string
|
|
Hugging Face dataset repo id
|
| album_image |
string
|
Selected album image path
|
|
| num_workers |
integer
|
4
|
Number of workers
|
| swap_images |
array
|
List of target images to swap faces with
|
{
"type": "object",
"title": "Input",
"properties": {
"img": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Img",
"description": "Primary source image path"
},
"ping": {
"type": "boolean",
"title": "Ping",
"default": false,
"description": "Warm GPU briefly and return no output"
},
"seed": {
"type": "integer",
"title": "Seed",
"default": 42,
"description": "Random seed"
},
"album": {
"type": "string",
"title": "Album",
"nullable": true,
"description": "Selected album name"
},
"token": {
"type": "string",
"title": "Token",
"format": "password",
"default": "",
"writeOnly": true,
"description": "Hugging Face token",
"x-cog-secret": true
},
"enhance": {
"type": "boolean",
"title": "Enhance",
"default": true,
"description": "Apply face enhancement"
},
"repo_id": {
"type": "string",
"title": "Repo Id",
"format": "password",
"default": "",
"writeOnly": true,
"description": "Hugging Face dataset repo id",
"x-cog-secret": true
},
"album_image": {
"type": "string",
"title": "Album Image",
"nullable": true,
"description": "Selected album image path"
},
"num_workers": {
"type": "integer",
"title": "Num Workers",
"default": 4,
"description": "Number of workers"
},
"swap_images": {
"type": "array",
"items": {
"type": "string",
"anyOf": [],
"format": "uri"
},
"title": "Swap Images",
"nullable": true,
"description": "List of target images to swap faces with"
}
}
}
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"
}