mertguvencli/face-swap-with-indexes ❓🖼️🔢 → 🖼️

▶️ 3.2K runs 📅 Apr 2025 ⚙️ Cog 0.13.7
face-indexing image-editing image-face-swap

About

Another face swap model? 🧐 Yep, but with indexes. Swap exactly the faces you want by picking their positions. Simple, flexible, and works great on group photos.

Example Output

Output

Example output

Performance Metrics

0.53s Prediction Time
0.55s Total Time
All Input Parameters
{
  "execution_type": "face_index",
  "destination_image": "https://replicate.delivery/pbxt/MsJyf7Egz2tNeXXUQzFvmrWXVUNLBuNz5noCksXmNcvKeYRx/harry-potter-tv-series-had-over-32000-children-audition-for_8rea.jpg",
  "source_face_image": "https://replicate.delivery/pbxt/MsJyfb7tQbzVtNf7sLUBU0wBq9KygwBn0rFwRhHhrxmpa3KS/ChatGPT%20Image%20Apr%2021%2C%202025%2C%2012_02_43%20PM.png",
  "source_face_index": 0,
  "destination_face_index": 0
}
Input Parameters
execution_type Default: face_swap
Determines execution for swap or show face indexes
destination_image (required) Type: string
Destination image for face swap
source_face_image (required) Type: string
Face image
source_face_index Type: integerDefault: 0Range: 0 - 100
Source face selection index for multiple faces
destination_face_index Type: integerDefault: 0Range: 0 - 100
Destination face selection index for multiple faces
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
[2025-04-21 17:48:32,095] INFO - Reading images...
[2025-04-21 17:48:32,144] INFO - Face analysis is starting...
[2025-04-21 17:48:32,399] INFO - Face analysis is done!
[2025-04-21 17:48:32,399] INFO - Number of source faces: 5
[2025-04-21 17:48:32,399] INFO - Number of destination faces: 3
Version Details
Version ID
518f2116425c40acb5c234031c55daf843c1357eff784370fe9489e57b65c150
Version Created
April 21, 2025
Run on Replicate →