You're looking at a specific version of this model. Jump to the model overview.

ddvinh1 /tool-faceswap-video:1ee25089

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
{'format': 'uri', 'title': 'Output', 'type': 'string'}