DeblurGANv2
ICCV 2019 · image deblurring · GAN · checkpoints: DeblurGAN-v2 Inception, DeblurGAN-v2 MobileNet, DeblurGAN-v2 MobileNet (BN in train mode)
Paper: DeblurGAN-v2: Deblurring (Orders-of-Magnitude) Faster and Better
DeblurGANv2 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 29.21 dB PSNR on GoPro, 78 of 106 methods. It is among the top quarter on GS-Blur (17 of 81). The fastest of its variants takes 2.1 ms per 1280×720 frame on one A100 with the authors' code. Our fast version dbisf-DeblurGANv2-MobileNet runs in 1.8 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DeblurGAN-v2 Inception | whole | GoPro + DVD + NFS | 29.21 | 27.00 | 28.85 | 29.56 | 28.77 | 35.31 | 24.91 | 31.91 | 7.9 ms | 60.9 |
| DeblurGAN-v2 MobileNet | whole | GoPro + DVD + NFS | 26.85 | 26.19 | 27.95 | 28.48 | 28.11 | 35.20 | 23.84 | 30.88 | 2.1 ms | 3.3 |
| DeblurGAN-v2 MobileNet (BN in train mode) | whole,offprotocol | GoPro + DVD + NFS | 23.63 | 23.79 | 23.34 | 24.93 | 25.60 | 30.94 | 22.31 | 27.03 | 2.1 ms | 3.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 | DeblurGAN-v2 Inception (whole) | 29.21 | 0.879 | 0.115 | 78 of 106 | table |
| REDS | DeblurGAN-v2 Inception (whole) | 27.00 | 0.814 | 0.179 | 53 of 106 | table |
| BSD | DeblurGAN-v2 Inception (whole) | 28.85 | 0.875 | 0.123 | 29 of 106 | table |
| DVD | DeblurGAN-v2 Inception (whole) | 29.56 | 0.872 | 0.114 | 58 of 106 | table |
| RealBlur-J | DeblurGAN-v2 Inception (whole) | 28.77 | 0.868 | 0.142 | 35 of 81 | table |
| RealBlur-R | DeblurGAN-v2 Inception (whole) | 35.31 | 0.944 | 0.085 | 54 of 81 | table |
| GS-Blur | DeblurGAN-v2 Inception (whole) | 24.91 | 0.736 | 0.293 | 17 of 81 | table |
| MIORe | DeblurGAN-v2 Inception (whole) | 31.91 | 0.853 | 0.189 | 28 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-DeblurGANv2-Inception")
out = net.restore(frames)
dbis-DeblurGANv2-Inception: gives the authors' outputs, 1.7× smaller, 7.9 msdbisf-DeblurGANv2-Inception: fast and light version, −16 %, 6.6× smaller, 6.6 msdbis-DeblurGANv2-MobileNet: gives the authors' outputs, 1.6× smaller, 2.1 msdbisf-DeblurGANv2-MobileNet: fast and light version, −14 %, 3.7× smaller, 1.8 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.