registry
¶
Classes¶
Functions¶
fastvideo.eval.registry.get_metric
¶
get_metric(name: str, **kwargs: Any) -> BaseMetric
Instantiate a registered metric by name.
Checks that optional dependencies are installed before instantiation and gives a clear install hint pointing at the right extra group.
Source code in fastvideo/eval/registry.py
fastvideo.eval.registry.list_metrics
¶
fastvideo.eval.registry.missing_dependencies
¶
Importable module names declared by metric_name that are not
actually importable in this environment. Returns [] if all deps
are satisfied or the metric is unknown.
Used by group-style resolution to decide which metrics to silently
skip (vs. naming a metric explicitly, where the missing dep should
surface as :class:ImportError).
Source code in fastvideo/eval/registry.py
fastvideo.eval.registry.register
¶
register(name: str)
Decorator to register a metric class.
Usage::
@register("ssim")
class SSIMMetric(BaseMetric):
...
fastvideo.eval.registry.resolve_group
¶
If name is a group prefix (e.g. "vbench"), return all matching
metric names. Returns None if name is not a group.