ddvinh1/tool-faceswap-video

Public
3 runs

Run ddvinh1/tool-faceswap-video 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 (person whose face will be swapped)
target_video
string
Target video (video where faces will be replaced)
mode
None
single
Swap mode: 'single' for one face, 'multi' for all detected faces
cropped_size
integer
224

Min: 224

Max: 1024

Crop size for face detection
is_use_mask
boolean
False
Use face parsing mask for better results (slower)
det_thresh
number
0.6

Min: 0.1

Max: 1

Face detection threshold
processing_mode
None
multi_worker
Processing mode for faster execution
num_workers
integer
4

Min: 1

Max: 8

Number of worker threads (for multi_worker mode)
batch_size
integer
4

Min: 1

Max: 16

Batch size for processing

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"
}