Restormer
CVPR 2022 · image deblurring · Transformer
Paper: Restormer: Efficient Transformer for High-Resolution Image Restoration
Restormer 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 32.92 dB PSNR on GoPro, 52 of 106 methods. It is among the top quarter on MIORe (8 of 81). The fastest of its variants takes 153 ms per 1280×720 frame on one A100 with the authors' code. Our fast version dbisf-Restormer runs in 103 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Restormer | whole | GoPro | 32.92 | 26.93 | 28.32 | 29.63 | 28.95 | 36.19 | 24.39 | 32.87 | 153 ms | 26.1 |
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 | Restormer (whole) | 32.92 | 0.940 | 0.084 | 52 of 106 | table |
| REDS | Restormer (whole) | 26.93 | 0.820 | 0.211 | 60 of 106 | table |
| BSD | Restormer (whole) | 28.32 | 0.883 | 0.125 | 37 of 106 | table |
| DVD | Restormer (whole) | 29.63 | 0.878 | 0.154 | 55 of 106 | table |
| RealBlur-J | Restormer (whole) | 28.95 | 0.878 | 0.157 | 32 of 81 | table |
| RealBlur-R | Restormer (whole) | 36.19 | 0.957 | 0.061 | 29 of 81 | table |
| GS-Blur | Restormer (whole) | 24.39 | 0.737 | 0.336 | 34 of 81 | table |
| MIORe | Restormer (whole) | 32.87 | 0.871 | 0.200 | 8 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-Restormer")
out = net.restore(frames)
dbis-Restormer: gives the authors' outputs, 154 msdbisf-Restormer: fast and light version, −32 %, 4.1× smaller, 103 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.
Links
- Paper: https://arxiv.org/abs/2111.09881
- Authors' code: https://github.com/swz30/Restormer
- Interactive leaderboard and Pareto front
- All models with download buttons
- Other checkpoints of this architecture: DCPT, ID-Blau