Menu

Where a face swap pipeline actually spends its time (and why GIFs are the hard part)
📰

Where a face swap pipeline actually spends its time (and why GIFs are the hard part)

DEV Community: computervision·DeepSwapAI·3 days ago
#gRu7YPeW
Long article (720 words) — no AI summary yet.
Reading 0:00
15s threshold

A still face swap looks like a single step: upload two photos, get one back. Underneath it is five or six stages, and each one fails in a different way. When the output is "almost right", knowing which stage produced the artifact saves a lot of guessing.

This is a general map of the pipeline, not a description of one vendor's internals. The stages are common; the tuning is where products differ.

1. Detection and landmarks

Everything downstream depends on the box and the landmarks. A detection that clips the chin, or landmarks that put the jawline two pixels inside the actual jaw, produce a result that drifts as soon as the head turns. The usual tell is a face that looks slightly small for its skull.

Debug move: draw the landmarks on the source before the swap. If they do not sit on the pupils, nostril base and mouth corners, nothing later will save it.

2. Alignment and warp

The source face is warped into the target's pose with a similarity or affine transform built from the landmarks.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.