qwaezrx
/
ipadapter-faceid-faceswap-upscale
Generate face based images using ipadapter-faceid, faceswap, face restore, upscale.
- Public
- 24 runs
Run qwaezrx/ipadapter-faceid-faceswap-upscale 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 |
---|---|---|---|
positive_prompt |
string
|
photo of a man, fashion model, simple clothes
high quality, highly detailed, 4k, highres
|
Positive Prompt
|
negative_prompt |
string
|
blurry, distorted, low quality, bad hands
|
Negative Prompt
|
face_image |
string
|
Source image of the face
|
|
checkpoint |
string
(enum)
|
beautifulRealistic_v7.safetensors
Options: beautifulRealistic_v7.safetensors, toonyou_beta6.safetensors, darkSushiMixMix_225D.safetensors |
SD 1.5 model checkpoint
|
num_inference_steps |
integer
|
30
|
Steps
|
batch_size |
integer
|
1
Min: 1 Max: 4 |
Number of images to generate in batch
|
repeat |
integer
|
1
|
Repeat running this request (2 batch size, 2 repeat -> 2 * 2 images)
|
width |
integer
|
512
|
None
|
height |
integer
|
768
|
None
|
cfg |
number
|
8
|
None
|
seed |
integer
|
Sampling seed, leave Empty for Random
|
|
vae |
string
(enum)
|
vae-ft-mse-840000-ema-pruned.safetensors
Options: vae-ft-mse-840000-ema-pruned.safetensors |
An enumeration.
|
sampler |
string
(enum)
|
euler
Options: euler, euler_ancestral, heun, heunpp2, dpm_2, dpm_2_ancestral, lms, dpm_fast, dpm_adaptive, dpmpp_2s_ancestral, dpmpp_sde, dpmpp_sde_gpu, dpmpp_2m, dpmpp_2m_sde, dpmpp_2m_sde_gpu, dpmpp_3m_sde, dpmpp_3m_sde_gpu, ddpm, lcm |
An enumeration.
|
scheduler |
string
(enum)
|
normal
Options: normal, karras, exponential, sgm_uniform, simple, ddim_uniform |
An enumeration.
|
face_restore_model |
string
(enum)
|
GFPGANv1.4.pth
Options: GFPGANv1.4.pth, RestoreFormer.pth |
An enumeration.
|
upscaler_model |
string
(enum)
|
4x-UltraSharp.pth
Options: 4x-UltraSharp.pth, RealESRGAN_x4.pth, RealESRGAN_x2.pth |
An enumeration.
|
agree_to_research_only |
boolean
|
False
|
You must agree to use this model only for research. It is not for commercial use.
|
{
"type": "object",
"title": "Input",
"required": [
"face_image"
],
"properties": {
"cfg": {
"type": "number",
"title": "Cfg",
"default": 8,
"x-order": 9
},
"vae": {
"enum": [
"vae-ft-mse-840000-ema-pruned.safetensors"
],
"type": "string",
"title": "vae",
"description": "An enumeration.",
"default": "vae-ft-mse-840000-ema-pruned.safetensors",
"x-order": 11
},
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 10,
"description": "Sampling seed, leave Empty for Random"
},
"width": {
"type": "integer",
"title": "Width",
"default": 512,
"x-order": 7
},
"height": {
"type": "integer",
"title": "Height",
"default": 768,
"x-order": 8
},
"repeat": {
"type": "integer",
"title": "Repeat",
"default": 1,
"x-order": 6,
"description": "Repeat running this request (2 batch size, 2 repeat -> 2 * 2 images)"
},
"sampler": {
"enum": [
"euler",
"euler_ancestral",
"heun",
"heunpp2",
"dpm_2",
"dpm_2_ancestral",
"lms",
"dpm_fast",
"dpm_adaptive",
"dpmpp_2s_ancestral",
"dpmpp_sde",
"dpmpp_sde_gpu",
"dpmpp_2m",
"dpmpp_2m_sde",
"dpmpp_2m_sde_gpu",
"dpmpp_3m_sde",
"dpmpp_3m_sde_gpu",
"ddpm",
"lcm"
],
"type": "string",
"title": "sampler",
"description": "An enumeration.",
"default": "euler",
"x-order": 12
},
"scheduler": {
"enum": [
"normal",
"karras",
"exponential",
"sgm_uniform",
"simple",
"ddim_uniform"
],
"type": "string",
"title": "scheduler",
"description": "An enumeration.",
"default": "normal",
"x-order": 13
},
"batch_size": {
"type": "integer",
"title": "Batch Size",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 5,
"description": "Number of images to generate in batch"
},
"checkpoint": {
"enum": [
"beautifulRealistic_v7.safetensors",
"toonyou_beta6.safetensors",
"darkSushiMixMix_225D.safetensors"
],
"type": "string",
"title": "checkpoint",
"description": "SD 1.5 model checkpoint",
"default": "beautifulRealistic_v7.safetensors",
"x-order": 3
},
"face_image": {
"type": "string",
"title": "Face Image",
"format": "uri",
"x-order": 2,
"description": "Source image of the face"
},
"upscaler_model": {
"enum": [
"4x-UltraSharp.pth",
"RealESRGAN_x4.pth",
"RealESRGAN_x2.pth"
],
"type": "string",
"title": "upscaler_model",
"description": "An enumeration.",
"default": "4x-UltraSharp.pth",
"x-order": 15
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "blurry, distorted, low quality, bad hands",
"x-order": 1,
"description": "Negative Prompt"
},
"positive_prompt": {
"type": "string",
"title": "Positive Prompt",
"default": "photo of a man, fashion model, simple clothes\n\nhigh quality, highly detailed, 4k, highres",
"x-order": 0,
"description": "Positive Prompt"
},
"face_restore_model": {
"enum": [
"GFPGANv1.4.pth",
"RestoreFormer.pth"
],
"type": "string",
"title": "face_restore_model",
"description": "An enumeration.",
"default": "GFPGANv1.4.pth",
"x-order": 14
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 30,
"x-order": 4,
"description": "Steps"
},
"agree_to_research_only": {
"type": "boolean",
"title": "Agree To Research Only",
"default": false,
"x-order": 16,
"description": "You must agree to use this model only for research. It is not for commercial use."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}