MIR.utils.segmentation_utils

Segmentation inference helpers (sliding-window).

Functions

get_patch_starts(dim_size, patch_size, stride)

Compute patch start indices for sliding-window inference.

sliding_window_inference(feat, head, patch_size)

Run sliding-window inference on a full-resolution feature volume.

sliding_window_inference_multires(x_feats, ...)

Run multiresolution sliding-window inference.