Skip to content

Applications and use cases

This package solves one problem: a chain of registered geometric transforms resamples the image once per transform, and each resampling costs time and image detail. Fusing the chain into a single warp removes the repeats.

That framing decides whether it fits your pipeline.

Your pipeline Verdict
Three or more consecutive registered geometric transforms on BCHW float tensors Strong fit — this is the measured case
One geometric transform, or geometry separated by color operations Weak fit — there is nothing to fuse; see Performance planning
Mostly nonlinear color, blur, erasing, or elastic deformation Poor fit — those are pointwise or non-affine and never merge
Unregistered spatial transforms alongside masks, boxes, or keypoints Unsafe — see Known limitations
PIL input, Albumentations dictionaries, or exact native pixel parity required Wrong tool — use the native backend container

Per-task recipes

What the evidence supports

The benchmarks retain a historical 1.7861x fixed-bank score across 168 timed CPU variants, with geometric chains reaching far higher ratios and a published regression at TorchVision batch 32. These are dated smoke measurements rather than current-head guarantees; the memory section and unpaired/model-endpoint comparisons remain withdrawn pending corrected tools. Fewer resampling passes is structural — it follows from the plan, not from timing — but faster wall-clock is not: it depends on device, shape, batch size, dtype, and transform mix.

Image quality is argued from the resampling count and visual overlays. Whether fusion changes downstream task metrics is not measured in this repository; treat that as an open question in your own ablation rather than a property of the package. The research methodology is the checklist for running that comparison honestly.

When not to use this package

Choose the native backend container when you require PIL/CHW input, complete Albumentations dictionary processors, exact native pixels, per-transform fill and interpolation semantics, segment hooks, unregistered spatial transforms with targets, or a backend-specific random-number stream.

A smaller native pipeline is better than an unsafe fused one.