Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA048 · Metric
Fréchet Video Distance
Compares real and generated video distributions through spatiotemporal feature moments.
In CodeSplash
Running this needs images, audio, video, graphs or another data type CodeSplash doesn't load yet.
- Availability
- Needs a data type CodeSplash doesn't load yet
- Code example
- Complete calculation
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- The reference's example ran in Python and R here, and they agree.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Compares real and generated video distributions through spatiotemporal feature moments.
Question / hypotheses
How far apart are clip-level feature distributions under a fixed video encoder?
Architecture / computational structure
A fixed pretrained feature/evaluation model followed by the named aggregation rule. The feature extractor is part of the metric specification.
Assumptions
Match frame rate, temporal extent, resolution, frame range, and encoder checkpoint. Treat clips from the same source video as dependent when estimating uncertainty.
Formula / computational definition
Parameters and notation
Feature moments are estimated; clip length, frame sampling, encoder, and evaluation sample size are protocol hyperparameters. FVD is distinct from applying image FID to independent frames.
Fitting, fine-tuning, and adaptation
There is no model fine-tuning step for this evaluation procedure. Freeze the evaluated systems and evaluator before the final test. Select evaluation settings on development data; if a learned evaluator or calibration model is adapted, use separate fitting data, version it, and reassess its validity.
How to use and calibrate
Use a reference implementation on matched clips, report uncertainty, and supplement with temporal consistency and prompt-conditioned assessments.
Example application
Compare action-video generators under fixed clip duration and sampling.
Interpretation / pitfalls
Watch out
Feature bias and sample size can dominate results. FVD does not establish physical correctness or long-horizon coherence. The diagonal-moment example below omits video encoding.
Python and R code examples
Scope: Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
Validation: Python — Executed successfully on synthetic inputs. R — reviewed but not executed in this environment. Python dependencies are explicit imports; R uses base R unless a package/bridge is explicitly named.
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline. · needs numpy
import numpy as np
mr=np.array([0.,1.,2.]); mg=np.array([.1,.8,2.3]); vr=np.array([1.,2.,1.]); vg=np.array([.9,1.8,1.4])
print(np.sum((mr-mg)**2)+np.sum(vr+vg-2*np.sqrt(vr*vg)))
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
mr <- c(0,1,2); mg <- c(.1,.8,2.3); vr <- c(1,2,1); vg <- c(.9,1.8,1.4)
print(sum((mr-mg)^2)+sum(vr+vg-2*sqrt(vr*vg)))
Sources
- Source 1arxiv.org
- Source 2github.com
From the CodeSplash reference, entry EVA048.