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.

import numpy as np def nme(a, b, interocular): """normalised mean error over N landmarks""" return float(np.mean(np.linalg.norm(a - b, axis=1)) / interocular) drift_to_target = nme(out_lms, target_lms, interocular_px) drift_to_source = nme(out_lms, source_lms, interocular_px) 

If drift_to_target is above roughly 0.04, the swap did not fully adopt the target's geometry. If drift_to_source is lower than drift_to_target, you have a blend, and blends read as "someone else" more than as either person.

2. Identity cosine similarity

Embeddings are the only cheap proxy for "is this the same person". Use any ArcFace-family model, one embedding per face, cosine distance between them.

def cos(a, b): a, b = a / np.linalg.norm(a), b / np.linalg.norm(b) return float(a @ b) same_person = cos(emb(out), emb(target)) cross = cos(emb(out), emb(source)) 

Two things to watch. Absolute thresholds depend on the model, so calibrate on real pairs: take ten photos of one person and ten of another, and look at the gap. And always report cross alongside same_person — a swap that scores 0.55 against the target and 0.52 against the source has not swapped anything, it has averaged.

3. Colour error in LAB, on skin only

RGB differences lie because the channels are correlated with brightness. Convert to CIELAB and measure ΔE over a cheek patch that excludes eyes, mouth and hair.

from skimage import color def delta_e(patch_a, patch_b): la = color.rgb2lab(patch_a).reshape(-1, 3).mean(axis=0) lb = color.rgb2lab(patch_b).reshape(-1, 3).mean(axis=0) return float(np.linalg.norm(la - lb)) 

Under about 4 is invisible in a side-by-side. Between 4 and 8 it reads as a different light. Above 8 the face looks pasted, which is the failure people actually notice.

The number that lies

Whole-image SSIM. It is the first thing everyone computes because it is one line, and it is nearly useless here: a swap that keeps the background, the hair and the clothing identical can score 0.97 while the face belongs to someone else. SSIM rewards not changing things, and a good swap changes exactly one thing.

Putting them in one place

A usable check is a triple: landmark drift to target, identity cosine gap (same_person - cross), and ΔE on a cheek patch. On a set of 50 swaps, the ones that fail the eye test almost always fail at least two of the three, and the ones that pass all three are the ones you would not notice in a group photo.

That last point is the practical one. The goal is not a high score, it is a swap that survives being looked at, at full size, by someone who knows the face.

I run these checks on output from faceswapai — group photos up to ten faces, video up to ten minutes, HD export with no watermark.