cutcutcodec.core.analysis.video.quality.utils.batched_single_frames
- cutcutcodec.core.analysis.video.quality.utils.batched_single_frames(func: callable) callable[source]
Decorate to vectorize the metrics.
The signature of the metric has to be:
metric(dis: torch.Tensor, *args, **kwargs) -> torch.TensorWith dis.shape == (batch, 5, height, width, 3). The returned type is based ondisparameter.