test_evaluator_paths
¶
Path-input variants of the public Evaluator API.
The worker boundary accepts video / reference as either a
pre-loaded (T, C, H, W) tensor or a path-like (str / Path).
These tests pin the path-form so future refactors don't accidentally
re-require pre-loaded tensors.
Classes¶
Functions¶
fastvideo.tests.eval.test_evaluator_paths.test_dispatcher_holds_paths_not_tensors_in_queue
¶
Memory invariant: when many paths are passed, the queued samples are tiny strings, not full tensors. Verify by checking the length of the per-sample reference set the dispatcher materializes.
Source code in fastvideo/tests/eval/test_evaluator_paths.py
fastvideo.tests.eval.test_evaluator_paths.test_missing_path_surfaces_as_exception
¶
Decode failures must propagate, not silently produce a None score.
Source code in fastvideo/tests/eval/test_evaluator_paths.py
fastvideo.tests.eval.test_evaluator_paths.test_one_shot_evaluate_accepts_paths
¶
The top-level fastvideo.eval.evaluate helper also flows paths.
Source code in fastvideo/tests/eval/test_evaluator_paths.py
fastvideo.tests.eval.test_evaluator_paths.test_path_form_score_matches_tensor_form
¶
Loading via path must produce the same score as loading via the
public load_video helper and passing the tensor in directly.
Source code in fastvideo/tests/eval/test_evaluator_paths.py
fastvideo.tests.eval.test_evaluator_paths.test_samples_list_can_mix_paths_and_tensors
¶
A single samples call can mix path and tensor entries.
Source code in fastvideo/tests/eval/test_evaluator_paths.py
fastvideo.tests.eval.test_evaluator_paths.video_paths
¶
Two reproducible mp4s on disk + their pre-loaded tensors for parity.