bytedance/pulid 🔢📝❓✓🖼️ → 🖼️

▶️ 3.3M runs 📅 May 2024 ⚙️ Cog 0.9.7 🔗 GitHub 📄 Paper ⚖️ License
image-consistent-character-generation image-to-image text-to-image

About

📖 PuLID: Pure and Lightning ID Customization via Contrastive Alignment

Example Output

Prompt:

"portrait, impressionist painting, loose brushwork, vibrant color, light and shadow play"

Output

Example outputExample outputExample outputExample output

Performance Metrics

7.46s Prediction Time
7.49s Total Time
All Input Parameters
{
  "prompt": "portrait, impressionist painting, loose brushwork, vibrant color, light and shadow play",
  "cfg_scale": 1.2,
  "num_steps": 4,
  "image_width": 768,
  "num_samples": 4,
  "image_height": 1024,
  "output_format": "webp",
  "identity_scale": 0.8,
  "mix_identities": false,
  "output_quality": 80,
  "generation_mode": "fidelity",
  "main_face_image": "https://replicate.delivery/pbxt/Kr6iendsvYS0F3MLmwRZ8q07XIMEJdemnQI3Cmq9nNrauJbq/zcy.webp",
  "negative_prompt": "flaws in the eyes, flaws in the face, flaws, lowres, non-HDRi, low quality, worst quality,artifacts noise, text, watermark, glitch, deformed, mutated, ugly, disfigured, hands, low resolution, partially rendered objects,  deformed or partially rendered eyes, deformed, deformed eyeballs, cross-eyed,blurry"
}
Input Parameters
seed Type: integer
Random seed. Leave blank to randomize the seed
prompt Type: stringDefault: portrait,color,cinematic,in garden,soft light,detailed face
Prompt
cfg_scale Type: numberDefault: 1.2Range: 1 - 1.5
CFG, recommend value range [1, 1.5], 1 will be faster
num_steps Type: integerDefault: 4Range: 1 - 100
Steps
image_width Type: integerDefault: 768Range: 512 - 2024
Width
num_samples Type: integerDefault: 4Range: 1 - 8
Num samples
image_height Type: integerDefault: 1024Range: 512 - 2024
Height
output_format Default: webp
Format of the output images
identity_scale Type: numberDefault: 0.8Range: 0 - 5
ID scale
mix_identities Type: booleanDefault: false
ID Mix (if you want to mix two ID image, please turn this on, otherwise, turn this off)
output_quality Type: integerDefault: 80Range: 0 - 100
Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.
generation_mode Default: fidelity
mode
main_face_image (required) Type: string
ID image (main)
negative_prompt Type: stringDefault: flaws in the eyes, flaws in the face, flaws, lowres, non-HDRi, low quality, worst quality,artifacts noise, text, watermark, glitch, deformed, mutated, ugly, disfigured, hands, low resolution, partially rendered objects, deformed or partially rendered eyes, deformed, deformed eyeballs, cross-eyed,blurry
Negative Prompt
auxiliary_face_image1 Type: string
Additional ID image (auxiliary)
auxiliary_face_image2 Type: string
Additional ID image (auxiliary)
auxiliary_face_image3 Type: string
Additional ID image (auxiliary)
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
Using seed: 61631
[!] (<class 'cog.types.Path'>) main_face_image=/tmp/tmpk7az_pmizcy.webp
[!] (<class 'NoneType'>) auxiliary_face_image1=None
[!] (<class 'NoneType'>) auxiliary_face_image2=None
[!] (<class 'NoneType'>) auxiliary_face_image3=None
[!] (<class 'str'>) prompt=portrait, impressionist painting, loose brushwork, vibrant color, light and shadow play
[!] (<class 'str'>) negative_prompt=flaws in the eyes, flaws in the face, flaws, lowres, non-HDRi, low quality, worst quality,artifacts noise, text, watermark, glitch, deformed, mutated, ugly, disfigured, hands, low resolution, partially rendered objects,  deformed or partially rendered eyes, deformed, deformed eyeballs, cross-eyed,blurry
[!] (<class 'float'>) cfg_scale=1.2
[!] (<class 'int'>) num_samples=4
[!] (<class 'int'>) seed=61631
[!] (<class 'int'>) num_steps=4
[!] (<class 'int'>) image_height=1024
[!] (<class 'int'>) image_width=768
[!] (<class 'float'>) identity_scale=0.8
[!] (<class 'str'>) generation_mode=fidelity
[!] (<class 'bool'>) mix_identities=False
  0%|          | 0/4 [00:00<?, ?it/s]
 25%|██▌       | 1/4 [00:00<00:00,  5.54it/s]
 50%|█████     | 2/4 [00:00<00:00,  6.73it/s]
 75%|███████▌  | 3/4 [00:00<00:00,  6.12it/s]
100%|██████████| 4/4 [00:00<00:00,  5.87it/s]
100%|██████████| 4/4 [00:00<00:00,  5.98it/s]
  0%|          | 0/4 [00:00<?, ?it/s]
 25%|██▌       | 1/4 [00:00<00:00,  5.53it/s]
 50%|█████     | 2/4 [00:00<00:00,  6.70it/s]
 75%|███████▌  | 3/4 [00:00<00:00,  6.09it/s]
100%|██████████| 4/4 [00:00<00:00,  5.85it/s]
100%|██████████| 4/4 [00:00<00:00,  5.95it/s]
  0%|          | 0/4 [00:00<?, ?it/s]
 25%|██▌       | 1/4 [00:00<00:00,  5.50it/s]
 50%|█████     | 2/4 [00:00<00:00,  6.66it/s]
 75%|███████▌  | 3/4 [00:00<00:00,  6.08it/s]
100%|██████████| 4/4 [00:00<00:00,  5.84it/s]
100%|██████████| 4/4 [00:00<00:00,  5.94it/s]
  0%|          | 0/4 [00:00<?, ?it/s]
 25%|██▌       | 1/4 [00:00<00:00,  5.52it/s]
 50%|█████     | 2/4 [00:00<00:00,  6.68it/s]
 75%|███████▌  | 3/4 [00:00<00:00,  6.08it/s]
100%|██████████| 4/4 [00:00<00:00,  5.83it/s]
100%|██████████| 4/4 [00:00<00:00,  5.94it/s]
[~] Saving to output_image_0.webp...
[~] Output format: WEBP
[~] Output quality: 80
[~] Saving to output_image_1.webp...
[~] Output format: WEBP
[~] Output quality: 80
[~] Saving to output_image_2.webp...
[~] Output format: WEBP
[~] Output quality: 80
[~] Saving to output_image_3.webp...
[~] Output format: WEBP
[~] Output quality: 80
Version Details
Version ID
43d309c37ab4e62361e5e29b8e9e867fb2dcbcec77ae91206a8d95ac5dd451a0
Version Created
May 16, 2024
Run on Replicate →