MaIR
CVPR 2025 · image deblurring · Mamba
Paper: MaIR: A Locality- and Continuity-Preserving Mamba for Image Restoration
MaIR is one of the methods of deblurring is solved, which runs every released checkpoint of a motion deblurring method on 8 test sets with one protocol and one GPU. Its best checkpoint scores 33.69 dB PSNR on GoPro, 25 of 106 methods. It is among the top quarter on GS-Blur (19 of 81), MIORe (6 of 81). The fastest of its variants takes 11.6 s per 1280×720 frame on one A100 with the authors' code. Our fast version dbisf-MaIR runs in 623 ms.
PSNR on every test set, dB
| Checkpoint | Variant | Trained on | GoPro | REDS | BSD | DVD | RealBlur-J | RealBlur-R | GS-Blur | MIORe | Latency | Params, M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MaIR | whole | GoPro | 33.69 | 27.25 | 28.20 | 29.70 | 29.15 | 36.28 | 24.79 | 32.94 | 11.6 s | 26.3 |
Whole frame or the variant shown (tiles, TLC, the temporal window of a video method), batch 1, every frame of each set, 8-bit outputs. RealBlur after the official ECC alignment. Latency per 1280×720 output frame on one A100 with the authors' code. A dash: not run on that set (video methods run on the four video sets).
Best checkpoint on each set
| Test set | Checkpoint | PSNR | SSIM | LPIPS | Rank among methods | |
|---|---|---|---|---|---|---|
| GoPro | MaIR (whole) | 33.69 | 0.947 | 0.079 | 25 of 106 | table |
| REDS | MaIR (whole) | 27.25 | 0.839 | 0.192 | 43 of 106 | table |
| BSD | MaIR (whole) | 28.20 | 0.876 | 0.141 | 39 of 106 | table |
| DVD | MaIR (whole) | 29.70 | 0.884 | 0.151 | 50 of 106 | table |
| RealBlur-J | MaIR (whole) | 29.15 | 0.888 | 0.147 | 28 of 81 | table |
| RealBlur-R | MaIR (whole) | 36.28 | 0.957 | 0.058 | 25 of 81 | table |
| GS-Blur | MaIR (whole) | 24.79 | 0.761 | 0.318 | 19 of 81 | table |
| MIORe | MaIR (whole) | 32.94 | 0.875 | 0.198 | 6 of 81 | table |
Run it in plain PyTorch
pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved"
import dbis
net = dbis.load("dbisf-MaIR")
out = net.restore(frames)
dbis-MaIR: close to the authors' outputs, 19.9 sdbisf-MaIR: fast and light version, 23.4× faster, 3.4× smaller, 623 ms
dbis loads the authors' checkpoint and gives their outputs. dbisf is a faster and lighter version of the same network. Every file keeps the license terms of its source.