"AI" is on a lot of video software these days, often without much explanation. This article explains what the neural networks in FPVCleaner actually do, how they fit with the rest of the restoration, and what they can't do.
In short, FPVCleaner uses three networks, each for one job:
| Network | Job | Where you see it |
|---|---|---|
| Torn-frame scan | Finds frames torn by signal breakup | Amber marks on the timeline |
| Frame interpolation | Rebuilds torn frames from the frames either side | Breakup repair |
| Restorer (U-Net) | Removes noise and colour speckle; doubles resolution | AI clean and AI HD export |
Everything else (flicker, hum bars, chroma delay, deinterlacing, temporal noise reduction) is classic signal processing. The two kinds work together: the classic stages fix what is predictable, and the networks handle what isn't.
1. Finding torn frames
When you open a clip, FPVCleaner scans it once for frames torn by signal breakup. A torn frame is hard to define with fixed rules, because breakup looks different on every clip: shifted bands, repeated lines, colour garbage, black bars.
The scan uses a trick instead. For every frame, the interpolation network (below) predicts what the frame should look like from the frame before and the frame after. A clean frame matches that prediction closely. A torn frame doesn't: the torn part differs sharply from the prediction while the rest still matches.
The frame is split into horizontal bands, and for each band the scan measures how the frame differs from the prediction in brightness, colour and structure. A small classifier, trained on hundreds of hand-labelled frames from real DVR recordings, decides which bands are torn. Only those bands are repaired, so the intact part of the frame stays exactly as recorded.
Limits: heavy tears are found reliably, and clean footage is left almost untouched. Mild tears, a slight shift in one band, are sometimes missed. That's why you can mark frames by hand with M; see Torn frames.
2. Rebuilding torn frames
A torn band has no usable picture in it, so it has to be rebuilt from other frames. FPVCleaner uses a frame interpolation network for this.
It works in two steps:
- Estimate the motion. The network compares the clean frames before and after the torn run and estimates, for every pixel, how the scene moved between them (optical flow). It does this coarse to fine, so it can follow both fast camera moves and small details.
- Warp and blend. Both clean frames are warped to the moment of the torn frame and blended, with a learned mask deciding which source is more reliable at each pixel, for example where something comes into view.
Before interpolating, the frames at either end of the run get their colour repaired, so rainbow damage isn't copied into the rebuilt frames.
Limits: interpolation needs good frames on both sides. A short dropout of a few frames rebuilds convincingly. When the signal is lost for a long stretch, or the camera moves very fast, the rebuilt frames get softer, because there's less shared picture to work from.
3. AI clean: removing noise and speckle
Analogue noise is not like camera grain. It's FM static, colour speckle and streaks, it changes every frame, and it sits on top of a picture that DVR compression has already softened. Classic denoisers either leave much of it or smear detail away with it.
AI clean is a U-Net, a network shape widely used for image restoration. It takes five frames at once: the frame being cleaned and two on each side. Before they go in, the neighbours are aligned to the middle frame using per-pixel motion, so the network sees the same detail five times, each with different noise. Noise that changes from frame to frame can then be told apart from detail that stays.
The network was trained for analogue FPV footage specifically, by learning to reproduce the output of a much larger video restoration model (distillation). That keeps it small, about 3 million parameters, so it can run on a laptop GPU.
It produces its output at twice the input resolution. Normal exports scale it back to the original size. AI HD exports keep the double size: for example 640×480 becomes 1280×960, with the extra detail rebuilt by the network. See Exporting.
Limits: AI clean is the heaviest part of the restoration, so live playback skips it to keep up. You see it on paused frames, in Render full quality and in exports. On very heavy damage it can smooth fine textures like grass. Lower the AI clean slider if a clip looks too clean.
How it runs on your computer
FPVCleaner doesn't use a general-purpose machine learning runtime. All three networks run as GPU compute shaders written for FPVCleaner's own engine, the same engine that runs the classic restoration stages. That has a few practical benefits:
- Everything stays on your computer. Your footage is never uploaded.
- Small download. The networks ship with the app and take about 20 MB, not gigabytes.
- Efficient. The networks run at half precision where the GPU supports it.
On an Apple M2, AI clean runs at about 8–10 frames per second on standard-definition DVR footage, and the torn-frame scan runs at roughly real-time speed.
Try it
The fastest way to see what the networks do is to compare a paused frame with AI clean at 0 and at 100%, and to step through a torn run frame by frame. The sample clips have plenty of both, and the free trial includes every feature. For the full restoration workflow, see How to restore analogue FPV DVR footage.
