Skip to content

The same face, dirtier with every segment

Four talking-head segments generated separately and cut together: the first is clean, the fourth is blotchy. The model didn't get worse — you fed its own output back in. Break the loop and the seams improve too.

10 min read Updated 29 Oct 2026

One script, one person, one locked-off camera. Cut into four segments, generated separately, joined back into a single take — all of it on a 4060 laptop with 8 GB of VRAM and 32 GB of RAM.

The first segment is clean: smooth skin, individual strands of hair. The fourth is blotchy: patches, clumped hair, wooden edges.

The easy conclusion is that the model degrades as it goes. It doesn’t. Every segment is a first-generation render; the model has no memory of the last one. What degrades is the chain — because you fed its output back in as its input.

Below are four things this run actually measured: where the decay comes from, which side of a seam decides it, which sentence in a prompt is a promise the input never keeps, and which numbers look like findings but are only noise.

The decay is the chain’s bill

The first version did the obvious thing: take the last frame of segment one, hand it to segment two as a reference; then take a frame from segment two for segment three. The pose carries over. The character looks continuous.

The character also got dirtier every time. But “dirty” is a texture word — dried out, patchy, clumped — you can’t put a threshold on it, and you can’t tell whether a fix worked. So swap it for something measurable: mean brightness of the face region.

seg1 seg2 seg3 seg4
Last-frame face brightness 102.9 90.2 85.1 79.2

A monotonic drop of 23.8 levels. Four segments, four generations.

The cause turned out to be more mechanical than “the model gets blurrier”: the four anchors themselves had whole-frame brightness of 77.5 → 72.6 → 67.9 → 63.9 — four to five levels lost at each step.

Which means the reference handed to segment four was already 13 levels darker than the one handed to segment one. And the prompt said identical exposure as the reference images — so every generation aligned itself to a slightly darker target.

Compounding is a property of the chain, not of the model. That sentence is the whole article.

Break the loop, and the seams get better too

The fix is one sentence long: give every segment the same two fixed anchors — one for identity, one for framing, shot size and light — and never replace them, never roll them forward.

The cost looks obvious. Pose no longer continues; each segment lands independently; the cuts will jump. So it looked like a trade: pose continuity for constant quality.

It wasn’t.

Measure Rolling anchor Fixed anchors
Last-frame face brightness, seg1→seg4 102.9 → 79.2 (−23.8, monotonic) 103.2 / 104.1 / 102.9 / 102.1 (−1.1)
Last frame vs anchor, SSIM 0.664 → 0.534 → 0.464 (walking away) 0.740 / 0.737 / 0.729 / 0.731 (flat)
Boundary SSIM 0.679 / 0.574 / 0.544 0.868 / 0.822 / 0.748

The seams improved along with everything else.

Because the rolling anchor was dragging the seam down as well: it made every cut a comparison between generation N and generation N+1’s ancestor. Break the loop and both sides of the cut descend from the same reference — they resemble each other not because the pose connects, but because they share an origin.

So the trade never existed. You thought you were spending pose continuity to buy constant quality; in fact pose and quality hung on the same loop and were worn down together.

The one real cost is that each segment lands independently. That cost is worth paying. A pose discontinuity costs you one frame out of twenty-four; decay makes the back half of the film look worse. Nobody remembers the one-frame jump. Everybody can see that the ending is muddy.

If the prompt describes something the input doesn’t have, the model rolls dice

With the loop broken, two problems were left at the seams: a jump, and a flash. Three symptoms, one cause.

The prompt says The input actually has The symptom
rest pose … with the mouth closed An anchor whose mouth is open (teeth visible) Every segment opens with the mouth already open
the complete final audio track, including its trailing silence Audio that ends on the last word; the silence was padded in afterwards The model invents speech inside the silence
roughly one second of stillness An actual tail of 0.27–0.62 s The tail never settles, so the cut can’t line up

All three are cheques the input never cashes. The prompt describes something that isn’t in the input. The model doesn’t complain — it rolls dice. Sometimes you get it, sometimes you don’t, and never the same way twice.

The fix is to make the input actually contain the thing. Rebuild the composition anchor with the mouth closed. Put the silence into the audio file (0.54 s at the head, 1.00 s at the tail) instead of letting the backend pad it. Round --duration to the audio length, so the silence is calculated rather than extruded from the frame grid.

These four clauses are the entire wording change, and they’re the most copyable part of this whole pipeline:

# Constant exposure — written against the decay
the overall brightness, contrast and colour temperature of the frame
stay constant and never drift

# Settle back to the anchor — so every segment ends in the same pose
As the last word ends, he closes his mouth, releases the speaking
expression and settles back into the relaxed, neutral posture and
expression of <Picture 2>, holding that pose … until the final frame

# No sound during the rest — otherwise the model fills that silence
He does not speak again after the last word, and no extra words,
breaths or vocal sounds are produced during that closing silence

# Closed mouth at the open — written as sequence, not as state
The shot opens on his mouth already closed … his mouth stays closed
until the first syllable of <Audio 1> is voiced, and the very first
lip movement in the shot is the start of that first syllable

Result: true seams went 0.886 / 0.857 / 0.768 → 0.923 / 0.868 / 0.907, and within-segment first-frame-vs-last-frame went 0.82 → 0.91.

That last number deserves its own paragraph. Within-segment first-vs-last is the most trustworthy figure in this batch, because it compares two frames inside the same video and is immune to the cross-run head-position problem — the one that contaminates whole-frame SSIM and mouth-region SSIM (the same rest pose only scores 0.79–0.91 across different runs, while the seam difference you care about is 0.05–0.09, entirely inside the noise band).

Two operating rules, both learned the hard way:

  • Replace anchors as a batch. Change one segment’s anchor alone and that segment’s entire rendering baseline shifts, so it stops matching the others (0.886 → 0.719).
  • --duration is a floor, not a ceiling. target = max(duration, audio). An 8.09 s audio with --duration 8 produces 8.71 s. You cannot shorten a segment this way.

The entrance frame decides the seam, not the exit frame

The assumption was that the previous segment’s tail hadn’t settled, so the tail got trimmed over and over. One measurement showed the direction was backwards.

Compare every last frame against every first frame and you get a 4×4 SSIM matrix:

s1_first s2_first s3_first s4_first
s1_last 0.846 0.868 0.824 0.776
s2_last 0.830 0.848 0.822 0.785
s3_last 0.819 0.857 0.786 0.748
s4_last 0.842 0.872 0.797 0.753

Two things fall out of it:

  • Column span 0.096, row span 0.026. Swapping the entrance frame moves the score by 0.096; swapping the exit frame moves it by 0.026. The entrance frame explains about 3.7× as much.
  • s4_last against s2_first scores 0.872 — better than any real seam. The quality of a seam is settled the moment its first frame is generated.

The reason is plain: all four tails are closed-mouth rest states, and all four entrances are already mid-speech. Matching a closed mouth to an open one doesn’t work, however carefully you pick the frame. Trimming the tail buys 0.000–0.008 per extra frame — nothing.

What actually moves the number is the entrance: make every segment start from rest. That’s what the “closed mouth at the open” clause and the head silence are doing. lip-sync is usually treated as a target to hit; here it works more like a directing tool — you’re deciding which moment the segment starts speaking from.

What’s left isn’t displacement

With the entrances fixed, the seam still had a faint sense that the person was slightly different. The first instinct was frame interpolation, RIFE-style. Measured and rejected: it’s the wrong kind of problem.

Start by measuring the head on both sides of the seam, using the alpha from a matte pass:

Frame Head centre Head width × height
seg1 last (273, 228) 318 × 343
seg2 first (274, 228) 318 × 344
seg2 last (274, 228) 319 × 344
seg3 first (272, 228) 315 × 344

One to two pixels across the seam. There is nothing to align, and no displacement to smear.

So where is the difference? Subtract directly: hair 5.53, head and face 4.25, shoulders and chest 4.36, whole frame 3.60 (1.4%), local maximum 132.

Diffuse, low-amplitude, spread evenly across the whole face — this is a face that was rendered again. It has no shape, which is why viewers can’t name what’s wrong and only report that it feels off.

That kills three approaches at once. Not interpolation — there’s no motion to interpolate, so you get a face morphing between two faces. Not registration — there’s nothing to register. Not a better cut point — searching all 144 pairs across twelve frames on each side found a best improvement of 0.0009, because inside a rest hold every frame differs from every opposite frame by the same amount.

It’s a dissolve. Four frames, 0.167 s, xfade paired with acrossfade. None of the showy transitions in transition-types apply here, because there is no transition — only two versions of the same face that need to be blended away.

One ceiling is worth remembering: the dissolve must be shorter than the nearest event at the seam. Here segment two blinks on frames 3–5. A four-frame dissolve only reaches the start of the blink and stays invisible; eight frames swallow the blink whole and produce a translucent double eyelid. Four frames is a limit, not a preference — and it has to be re-measured on different footage.

How to measure: three ways to be fooled

The hard part of this work isn’t generating. It’s looking.

One: SSIM needs a reference frame. A lone 0.68 means nothing. Adjacent frames within a segment ≈ 0.99 (fully continuous). Two frames three seconds apart within a segment ≈ 0.74 — the natural amplitude of ordinary motion, which is the baseline to judge against. Two unrelated frames ≈ 0.43, a cut to a different setup. A boundary that lands near 0.74 is one the audience won’t notice.

Two: adjacent-boundary SSIM cannot see compounding. This is what went wrong in the first version. Neighbouring segments differ by only about 8%, and compounding is invisible in an adjacent comparison by construction — only first-versus-last exposes it. The first version measured boundaries only, concluded “anchoring helps but isn’t sufficient,” and missed that the real problem was directional drift. The same blindness applies to texture: a symptom list made of words like dried-out and patchy contains no brightness number, and the actual finding was a monotonic −23.8.

Three: n=1 lies. Every group in this run was a single take. That produced three wrong conclusions in one day. A difference of ±0.03 is not a signal until you’ve measured run-to-run variance.

The worst case was a broken measurement rather than a broken model. The audio-alignment search locked onto a pitch sidelobe — voice repeats every 8 ms at the fundamental — and scored a 1:1 copy at r=0.65. That low r reproduced across three independent generations and two prompt versions: a clean, stable, entirely plausible false finding. The true value after the fix was 0.9847.

The lesson isn’t “that script had a bug.” It’s that a conclusion as consequential as “low r” has to be validated against a known ground truth first. Use the padded audio as a baseline — the delay is known — and a correct measurement returns r=1.0000 @ -adelay.

Two more of the same family: collapsing a statistic into a single-pixel 8-bit image reported 0.0 for all 766 frame pairs, which looked like perfect temporal stability but was pure quantisation — anything under 0.5/255 is flushed to zero; the same data in floating-point signalstats reads YAVG=0.329, YMAX=130. And ffmpeg -v error swallows the summary lines from ssim, volumedetect and signalstats, because all of them log at INFO level.

iteration-loop means something slightly different here too: not “try another version and see,” but find a quantity you can measure, and then change something. Without that quantity, three rounds of iteration are just three more rolls of the dice.

What this costs on the machine

Back to that laptop: RTX 4060 Laptop, 8 GB VRAM, 32 GB RAM.

Item Measured
Resolution 480P only. 768P runs out of memory
Per-segment ceiling 226 frames = 9.42 s (hard local limit)
Time 192 frames ≈ 6 min; 226 frames ≈ 7.5 min
Memory 766 frames × 544×800 × 3ch × 4B ≈ 12 GB — you cannot read the whole take in, it has to be chunked

Two things about staying alive, and one about saving time. GPU utilisation alternates between saturating during sampling and idling during decode and encode, so 0% does not mean stuck — check curl 127.0.0.1:8188/queue and trust queue_running. And when matting, work in chunks of 64 frames (about 1 GB in, 1.3 GB out), which is faster and far more stable than reading the take whole.

The cost structure is the real point. Matting is expensive, but you only do it once: after the 766 frames are cut out, swapping the background takes 3.7 seconds and no GPU — no regeneration, no change to the person, no loss of quality. Which means “decide the background before you shoot” stops being a requirement on this pipeline.

The cloud path was verified too: same prompt, same anchors, not one line changed at the call site, an 8-second segment in 3 min 47 s. And the cloud genuinely reuses the reference audio 1:1 (r=0.9937; 0.9920 for the same segment locally). That had to be measured first, because otherwise the local-versus-cloud comparison doesn’t hold: one side compares the same waveform, the other compares two separate performances.

The limits: one machine, one script, four segments. Breaking the loop should in principle be independent of segment count, but nothing above twenty has been tried. Run-to-run variance was never measured. And lip sync has only ever been checked by eye — nobody has quantified it. That last one is the biggest gap in the whole pipeline.

One page

Consistency is the chain's bill
  Two fixed anchors per segment, never the previous segment's frame
  Judge compounding by first-vs-last, not by adjacent boundaries

A prompt may not describe what the input doesn't have
  Read it sentence by sentence: is this thing actually in the input?
  Closed-mouth anchor · silence inside the audio · duration on the audio

The entrance frame decides the seam
  Trimming the tail buys 0.000–0.008 — don't
  Start each segment at rest: head silence + first lip move = first syllable

What remains is a re-render, not displacement
  Head position differs by 1–2 px, nothing to align → four-frame dissolve
  Dissolve shorter than the nearest event (here, a blink)

Validate the measurement before the conclusion
  SSIM reference frame 0.99 / 0.74 / 0.43
  Floating-point signalstats, never a single-pixel 8-bit image
  Check against a known ground truth (a known adelay) before believing a number

character-consistency covers what this problem is. This piece is the curve you see once you turn it into something measurable.

Sources

  1. santi_digital docs/experience — seven production logs from a digital-human pipeline (2026-10-12 → 10-15); every number below comes from that record
  2. Zhou Wang, Alan C. Bovik, Hamid R. Sheikh & Eero P. Simoncelli, Image Quality Assessment: From Error Visibility to Structural Similarity, IEEE TIP 13(4), 2004 — the definition and range of SSIM as used here