Utilities#

General helper utilities for multimodal UDF development.

scatter_results(results, valid_indices, ...)

Place batch results back at their original indices.

run_image_batch_inference(image_series, ...)

Decode a native IMAGE batch, run inference, and scatter results.

resize_batch(images, target_size[, ...])

Resize a batch of differently-sized ndarrays to a uniform size.

normalize_batch(batch[, mean, std])

Normalize a batch of images.

batch_to_tensor(batch[, device])

Convert an ndarray batch to a PyTorch tensor.