ddvinh1/inswapper 🔢🖼️✓📝 → 🖼️

▶️ 219 runs 📅 Aug 2025 ⚙️ Cog 0.16.3
image-editing image-face-swap

About

Example Output

Output

Example output

Performance Metrics

7.26s Prediction Time
7.28s Total Time
All Input Parameters
{
  "upscale": 2,
  "source_img": "https://replicate.delivery/pbxt/NdDPOXId8IyeGHPqRFSFTIp2LwGPPsTNX2FA2NSgOcVi4qEp/John_Cena_Profile.png",
  "target_img": "https://replicate.delivery/pbxt/NdDPOF9gB2oovGtKT0gysqVcm1VchRLLQOThfqRhxFqrGhmA/mans1.jpeg",
  "face_restore": true,
  "face_upsample": true,
  "source_indexes": "-1",
  "target_indexes": "-1",
  "background_enhance": true,
  "codeformer_fidelity": 0.5
}
Input Parameters
upscale Type: integerDefault: 2Range: 1 - 4
Upscale factor (1-4)
source_img (required) Type: string
Source image(s) - can be multiple images separated by semicolons
target_img (required) Type: string
Target image to swap faces into
face_restore Type: booleanDefault: true
Apply face restoration using CodeFormer
face_upsample Type: booleanDefault: true
Upsample faces
source_indexes Type: stringDefault: -1
Comma separated list of face indexes to use in source image (-1 for all)
target_indexes Type: stringDefault: -1
Comma separated list of face indexes to swap in target image (-1 for all)
background_enhance Type: booleanDefault: true
Enhance background
codeformer_fidelity Type: numberDefault: 0.5Range: 0 - 1
CodeFormer fidelity parameter (0.0-1.0)
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Source image paths: ['/tmp/tmptvgo7jzeJohn_Cena_Profile.png']
Source faces: 1
Target faces: 2
Result saved successfully: /tmp/result.png
Version Details
Version ID
25bdae46f2713138640b6e8c04dc4ca18625ce95b1863936b053eee42d9ba6db
Version Created
August 31, 2025
Run on Replicate →