You're looking at a specific version of this model. Jump to the model overview.
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_img |
string
|
Source image(s) - can be multiple images separated by semicolons
|
|
target_img |
string
|
Target image to swap faces into
|
|
source_indexes |
string
|
-1
|
Comma separated list of face indexes to use in source image (-1 for all)
|
target_indexes |
string
|
-1
|
Comma separated list of face indexes to swap in target image (-1 for all)
|
face_restore |
boolean
|
True
|
Apply face restoration using CodeFormer
|
background_enhance |
boolean
|
True
|
Enhance background
|
face_upsample |
boolean
|
True
|
Upsample faces
|
upscale |
integer
|
2
Min: 1 Max: 4 |
Upscale factor (1-4)
|
codeformer_fidelity |
number
|
0.5
Max: 1 |
CodeFormer fidelity parameter (0.0-1.0)
|
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'}