You're looking at a specific version of this model. Jump to the model overview.
ddvinh1 /tool-faceswap:eb7ba989
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 |
string
|
Source image (person whose face will be swapped)
|
|
target |
string
|
Target image (person whose face will be replaced)
|
|
mode |
None
|
all
|
Swap mode: 'single' for one face, 'all' for all detected faces
|
cropped_size |
integer
|
512
Min: 224 Max: 1024 |
Crop size for face detection
|
is_use_mask |
boolean
|
False
|
Use face parsing mask for better results
|
det_thresh |
number
|
0.6
Min: 0.1 Max: 1 |
Face detection threshold
|
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'}