cutcutcodec.core.analysis.video.metric.utils
Helper for metrics.
Functions
|
Decorate to vectorize the metrics. |
Details
- cutcutcodec.core.analysis.video.metric.utils.batched_frames(func: callable) callable[source]
Decorate to vectorize the metrics.
The signature of the metric has to be:
metric(ref: torch.Tensor, dis: torch.Tensor, *args, **kwargs) -> torch.TensorWith ref.shape == dis.shape == (batch, height, width, channels). The returned type is based ondisparameter.