Skip to content

dynamic_degree

Modules

fastvideo.eval.metrics.vbench.dynamic_degree.metric

VBench Dynamic Degree — RAFT optical flow motion detection.

For each consecutive frame pair, computes optical flow via RAFT and takes the mean of the top 5% flow magnitudes. If enough pairs exceed an adaptive threshold, the video is classified as dynamic (1.0) vs static (0.0).

Classes

fastvideo.eval.metrics.vbench.dynamic_degree.metric.DynamicDegreeMetric
DynamicDegreeMetric()

Bases: BaseMetric

Source code in fastvideo/eval/metrics/vbench/dynamic_degree/metric.py
def __init__(self) -> None:
    super().__init__()
    self._model: Any = None
    self._chunk_size = 16

Functions