test_evaluator_single
¶
End-to-end tests for single-replica eval through the public API.
Runs the lightweight pixel-space metrics — common.psnr and
common.ssim — under both shapes that real callers use:
- one-shot
evaluate(video=..., reference=...)(the helper infastvideo.eval.api); - a long-lived
Evaluator, called once per sample; - a long-lived
Evaluator, called with a list of sample dicts to fan out (samples=[...]).
GPU-only metrics live in separate test modules / classes; everything here runs on CPU so the suite stays cheap to invoke.
Classes¶
Functions¶
fastvideo.tests.eval.test_evaluator_single.gen_ref
¶
Reproducible (gen, ref) pair shaped (T, C, H, W).
fastvideo.tests.eval.test_evaluator_single.test_evaluator_accepts_legacy_5d_input
¶
Callers that still pass (1, T, C, H, W) should get unwrapped.
Source code in fastvideo/tests/eval/test_evaluator_single.py
fastvideo.tests.eval.test_evaluator_single.test_evaluator_psnr_identical_videos_is_high
¶
PSNR(x, x) is unbounded above; with our clamp it caps near 100 dB.
Source code in fastvideo/tests/eval/test_evaluator_single.py
fastvideo.tests.eval.test_evaluator_single.test_evaluator_samples_list_preserves_input_order
¶
When samples=[...] is passed, results must come back per sample.