LoFormer
ACMMM 2024 · image deblurring · Frequency transformer · checkpoints: LoFormer-L
Paper: LoFormer: Local Frequency Transformer for Image Deblurring
LoFormer 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.35 dB PSNR on GoPro, 34 of 106 methods. It is among the top quarter on RealBlur-J (12 of 81), RealBlur-R (10 of 81). The fastest of its variants takes 840 ms per 1280×720 frame on one A100 with the authors' code. Our fast version dbisf-LoFormer-L runs in 181 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LoFormer-L | whole | GoPro | 33.35 | 26.84 | 27.70 | 29.44 | 28.53 | 36.15 | 23.92 | 32.28 | 840 ms | 49.0 |
| LoFormer-L | whole | RealBlur-R | 24.97 | 25.29 | 27.31 | 26.36 | 30.74 | 40.47 | 22.76 | 28.02 | 840 ms | 49.0 |
| LoFormer-L | whole | RealBlur-J | 24.57 | 26.22 | 28.25 | 25.75 | 32.72 | 37.90 | 23.56 | 27.75 | 840 ms | 49.0 |
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 | LoFormer-L (whole) | 33.35 | 0.943 | 0.083 | 34 of 106 | table |
| REDS | LoFormer-L (whole) | 26.84 | 0.824 | 0.202 | 66 of 106 | table |
| BSD | LoFormer-L (whole) | 28.25 | 0.876 | 0.175 | 38 of 106 | table |
| DVD | LoFormer-L (whole) | 29.44 | 0.874 | 0.166 | 66 of 106 | table |
| RealBlur-J | LoFormer-L (whole) | 32.72 | 0.934 | 0.090 | 12 of 81 | table |
| RealBlur-R | LoFormer-L (whole) | 40.47 | 0.975 | 0.038 | 10 of 81 | table |
| GS-Blur | LoFormer-L (whole) | 23.92 | 0.725 | 0.356 | 50 of 81 | table |
| MIORe | LoFormer-L (whole) | 32.28 | 0.862 | 0.203 | 24 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-LoFormer-L")
out = net.restore(frames)
dbis-LoFormer-L: gives the authors' outputsdbisf-LoFormer-L: fast and light version, 4.6× faster, 4.3× smaller, 181 msdbis-LoFormer-L-RealBlurJ: gives the authors' outputsdbis-LoFormer-L-RealBlurR: gives the authors' outputs
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/2407.16993
- Authors' code: https://github.com/DeepMed-Lab-ECNU/Single-Image-Deblur
- Interactive leaderboard and Pareto front
- All models with download buttons
- Other checkpoints of this architecture: UniDeblur