MIR Model Arena

My MIR toolkit puts registration networks behind one interface: a (moving, fixed) pair in, a displacement field out. Here six MIR models run in your browser, all trained in 2D with the same data and the same loss. Pick a contender for each side, choose how its output becomes a transformation, and compare them on the same pair.

Loading…
Image pair (IXI test subjects, axial slices)
Moving
Fixed
Display

|J|: 0.512  folded

A
Moving, warped to fixed
Jacobian determinant |J|
Dice
–
Folded pixels
–
Inference
–
B
Moving, warped to fixed
Jacobian determinant |J|
Dice
–
Folded pixels
–
Inference
–

All six models on 54 validation pairs

ModelTransformationParametersDownloadDiceFolded pixels

Dice over the anatomical labels of each slice; folded pixels = forward-difference |J| ≤ 0. Identity (no registration): Dice 0.45.

What you are looking at

VFA (vector field attention) finds correspondences by comparing moving and fixed features directly and reads the displacement off the attention weights. TransMorph uses a Swin Transformer encoder with a convolutional decoder. VoxelMorph is the classic convolutional U-Net baseline. With displacement outputs each pixel moves by the predicted vector; with SVF outputs the prediction is a velocity field integrated by scaling and squaring, which keeps the transformation invertible (try the transformation demo to see why).

To make the comparison fair, all six models were trained with one recipe: 2D axial IXI slices, inter-subject pairs at the same slice level, mean-squared-error similarity plus 0.01 × a diffusion regularizer, Adam at 10−4, batch 8, 20,000 iterations. They are small 2D models trained for this page, not the 3D models from the papers, so the ranking here is an illustration, not a benchmark.

One interface

The code panels show the only lines that change between models. Training, warping, losses and metrics stay the same:

from MIR.models import SpatialTransformer

warp = SpatialTransformer((192, 160))
flow = model((moving, fixed))                # any MIR model
loss = mse(warp(moving, flow), fixed) + 0.01 * smoothness(flow)

Images: IXI (CC BY-SA 3.0), test split. Models run with ONNX Runtime Web; each is downloaded only when you select it, and nothing leaves your device.

More demos All demos