{
  "id": 22494723,
  "title": "Three numbers that tell you whether a face swap actually worked",
  "url": "https://urgent.news/2026/11/29/three-numbers-that-tell-you-whether-a-face-swap-actually-worked",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-29T02:08:43.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/faceswapai_ai/three-numbers-that-tell-you-whether-a-face-swap-actually-worked-4e2p"
  },
  "original_language": null,
  "account": "When evaluating the success of a face swap, three key metrics provide insight into whether the swap has been convincingly executed. The first metric, landmark drift normalized, measures the distance between anchor points on the swapped face and the original face. If this drift exceeds approximately 0.04, the swap is deemed unsuccessful, as it indicates the swapped face has not adequately adapted to the new geometry. Conversely, a lower drift relative to the source face suggests a successful blend, where the swapped face appears more similar to the target.\n\nThe second metric, identity cosine similarity, gauges the likeness between the swapped face and the original target face. Embeddings generated by a facial recognition model are used to calculate the cosine similarity between the target and swapped face embeddings, as well as the source and swapped face embeddings. A high cosine similarity score indicates a successful swap, as the swapped face closely matches the target's identity. However, it is crucial to note that the thresholds for this metric may vary depending on the specific model employed, and reported values should be calibrated against real pairs of faces.\n\nThe third metric, colour error in LAB space on skin patches, addresses the challenge posed by RGB color differences. By converting the swapped face to the CIELAB color space and measuring the ΔE (difference in energy) over a skin patch that excludes the eyes, mouth, and hair, this metric quantifies colour discrepancies caused by the swap. An error under approximately 4 is generally imperceptible in side-by-side comparisons. When the error falls between 4 and 8, the swapped face appears to be of a different individual, while an error exceeding 8 renders the swap easily detectable as artificial.\n\nHowever, a key limitation to consider is that whole-image SSIM, a common metric for assessing image similarity, is often found to be ineffective in this context. Despite achieving high SSIM scores, a face swap can still be identified as deceptive if it maintains the background, hair, and clothing while altering the facial features. The ultimate goal is not merely to achieve high metric scores, but to create a swap that remains unnoticed even when scrutinized closely by someone familiar with the original face. Therefore, a comprehensive evaluation involving landmark drift, identity cosine similarity, and colour error in LAB space should be employed to ensure the success of a face swap in real-world scenarios.",
  "summary": "Every face swap looks fine at 600 pixels. The failures show up when you measure, and the measurements that matter are not the ones most tools report. Here are three that are cheap to compute, plus one that is popular and misleading. 1. Landmark drift, normalised Run the same landmark detector on the source, the target, and the output. The output should sit near the target, not between the two.…",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": "Using these specific metrics helps developers ensure face swaps look realistic and avoid being detected as artificial by people familiar with the original person.",
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}