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