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.…