FFTformer
CVPR 2023 · image deblurring · Frequency transformer
Paper: Efficient Frequency Domain-based Transformers for High-Quality Image Deblurring
FFTformer 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 34.16 dB PSNR on GoPro, 14 of 106 methods. It is among the top quarter on RealBlur-J (16 of 81), RealBlur-R (14 of 81). The fastest of its variants takes 728 ms per 1280×720 frame on one A100 with the authors' code. Our fast version dbisf-FFTformer runs in 194 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FFTformer | whole | GoPro | 34.16 | 26.78 | 23.98 | 27.96 | 27.77 | 35.87 | 22.71 | 28.80 | 728 ms | 16.6 |
| FFTformer | whole | RealBlur-R | 24.22 | 24.25 | 27.00 | 25.42 | 29.89 | 40.10 | 22.61 | 26.89 | 728 ms | 16.6 |
| FFTformer | whole | RealBlur-J | 24.08 | 26.09 | 28.06 | 25.90 | 32.61 | 37.66 | 23.24 | 27.89 | 728 ms | 16.6 |
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 | FFTformer (whole) | 34.16 | 0.952 | 0.071 | 14 of 106 | table |
| REDS | FFTformer (whole) | 26.78 | 0.832 | 0.190 | 71 of 106 | table |
| BSD | FFTformer (whole) | 28.06 | 0.878 | 0.166 | 45 of 106 | table |
| DVD | FFTformer (whole) | 27.96 | 0.840 | 0.191 | 93 of 106 | table |
| RealBlur-J | FFTformer (whole) | 32.61 | 0.932 | 0.093 | 16 of 81 | table |
| RealBlur-R | FFTformer (whole) | 40.10 | 0.973 | 0.036 | 14 of 81 | table |
| GS-Blur | FFTformer (whole) | 23.24 | 0.730 | 0.266 | 63 of 81 | table |
| MIORe | FFTformer (whole) | 28.80 | 0.821 | 0.255 | 55 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-FFTformer")
out = net.restore(frames)
dbis-FFTformer: gives the authors' outputsdbisf-FFTformer: fast and light version, 3.8× faster, 2.4× smaller, 194 msdbis-FFTformer-RealBlurJ: gives the authors' outputsdbis-FFTformer-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/2211.12250
- Authors' code: https://github.com/kkkls/FFTformer
- Interactive leaderboard and Pareto front
- All models with download buttons
- Other checkpoints of this architecture: ID-Blau