ddvinh1/vvv
Public
11
runs
Run ddvinh1/vvv 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 |
---|---|---|---|
source_image |
string
|
Source image containing the face to swap
|
|
target_video |
string
|
Target video where faces will be swapped
|
|
negative_prompt |
string
|
|
None
|
enhance |
boolean
|
False
|
Whether to enhance the swapped faces using GFPGAN
|
num_threads |
integer
|
8
Min: 1 Max: 16 |
Number of threads for processing
|
mode |
None
|
all
|
Swap mode
|
tracking_mode |
None
|
simple
|
Face tracking mode for specific mode
|
boxes |
string
|
|
Specific face boxes for first frame: x,y,w,h;...
|
target_fps |
number
|
Min: 1 Max: 60 |
Target FPS for output video (None to keep original FPS)
|
{
"type": "object",
"title": "Input",
"required": [
"source_image",
"target_video"
],
"properties": {
"mode": {
"enum": [
"single",
"all",
"specific"
],
"type": "string",
"title": "mode",
"description": "Swap mode",
"default": "all",
"x-order": 5
},
"boxes": {
"type": "string",
"title": "Boxes",
"default": "",
"x-order": 7,
"description": "Specific face boxes for first frame: x,y,w,h;..."
},
"enhance": {
"type": "boolean",
"title": "Enhance",
"default": false,
"x-order": 3,
"description": "Whether to enhance the swapped faces using GFPGAN"
},
"target_fps": {
"type": "number",
"title": "Target Fps",
"maximum": 60,
"minimum": 1,
"x-order": 8,
"description": "Target FPS for output video (None to keep original FPS)"
},
"num_threads": {
"type": "integer",
"title": "Num Threads",
"default": 8,
"maximum": 16,
"minimum": 1,
"x-order": 4,
"description": "Number of threads for processing"
},
"source_image": {
"type": "string",
"title": "Source Image",
"format": "uri",
"x-order": 0,
"description": "Source image containing the face to swap"
},
"target_video": {
"type": "string",
"title": "Target Video",
"format": "uri",
"x-order": 1,
"description": "Target video where faces will be swapped"
},
"tracking_mode": {
"enum": [
"simple",
"advanced"
],
"type": "string",
"title": "tracking_mode",
"description": "Face tracking mode for specific mode",
"default": "simple",
"x-order": 6
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 2
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}