enhance-replicate/faceswap_photo
Public
70
runs
Run enhance-replicate/faceswap_photo 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 |
string
|
Source image path
|
|
| seed |
integer
|
42
|
Random seed
|
| album |
string
|
Selected album name
|
|
| token |
string
|
|
Token
|
| enhance |
boolean
|
True
|
Apply face enhancement
|
| repo_id |
string
|
ameno-tech/faceswap_photo
|
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",
"required": [
"img"
],
"properties": {
"img": {
"type": "string",
"title": "Img",
"format": "uri",
"description": "Source image path"
},
"seed": {
"type": "integer",
"title": "Seed",
"default": 42,
"description": "Random seed"
},
"album": {
"type": "string",
"title": "Album",
"description": "Selected album name"
},
"token": {
"type": "string",
"title": "Token",
"default": "",
"description": "Token"
},
"enhance": {
"type": "boolean",
"title": "Enhance",
"default": true,
"description": "Apply face enhancement"
},
"repo_id": {
"type": "string",
"title": "Repo Id",
"default": "ameno-tech/faceswap_photo",
"description": "Repo ID"
},
"album_image": {
"type": "string",
"title": "Album Image",
"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",
"format": "uri"
},
"title": "Swap Images",
"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"
}