# DeblurGAN: Blind Motion Deblurring Using Conditional Adversarial Networks

DeblurGAN removes motion blur from single photos without knowing the blur kernel

Orest Kupyn, Volodymyr Budzan, Mykola Mykhailych, Dmytro Mishkin, Jiri Matas · arXiv · 2017-11-19

- **Problem** Blind deblurring has to recover a sharp photo from one blurred image without knowing the blur kernel. Kernel-estimation pipelines are slow to converge and fragile on real images.
- **Method** DeblurGAN is a conditional GAN that maps a blurred photo straight to a sharp one. It trains against a WGAN-GP critic with a VGG-19 feature loss.
- **Results** DeblurGANComb reached a PSNR of 28.7 and an SSIM of 0.958 on the GoPro linear subset.

## Why blind deblurring is hard

Blind deblurring asks for a sharp latent image from a single blurred photograph while the blur kernel is unknown. Classical pipelines estimate the camera motion as a blur kernel and then invert it with a deconvolution, but the per-pixel problem is ill-posed and the iterative solvers need a stopping rule that is hard to set. Later CNN approaches either estimate the kernel with a network or, as in the multi-scale CNN of Nah et al., map the blurred image directly to a sharp one without a kernel.

The GAN route comes from image-to-image translation, where adversarial training keeps fine texture and produces outputs that stay close to the natural image distribution. A pixel-wise loss such as MSE or MAE averages over the plausible sharp solutions and leaves the output blurry, so the authors pair an adversarial term with a feature-based content term.

## A conditional GAN with a critic and content loss

DeblurGAN treats deblurring as a conditional mapping: the generator takes the blurred image as input and estimates the sharp image, and no blur kernel is supplied to it. During training a critic network is trained alongside the generator in an adversarial manner, and the two are updated in turn. Unlike the original conditional GAN, the discriminator here is not conditioned on the input, because the authors see no need to penalize a mismatch between input and output.

The critic is a Wasserstein GAN critic with a gradient penalty, which avoids weight clipping and keeps the critic approximately 1-Lipschitz. The authors report that this critic is robust to the choice of generator architecture, which lets them use a lighter generator than a standard deep ResNet. At test time only the generator is kept, so the critic and the training losses are not needed to restore an image.

## Loss terms and their weights

The total objective is the adversarial term plus a content term, with the content term weighted by λ, which is set to 100 in all experiments. \\\[ L = L\_{GAN} + \\lambda \\cdot L\_X \\\] The adversarial term sums, over the samples n, the negative critic score of each generated image, so minimizing it drives the critic score of the restored images upward.

\\\[ L\_{GAN} = \\sum\_{n=1}^{N} -D\_{\\theta\_D}(G\_{\\theta\_G}(I\_B)) \\\] Training with this adversarial term alone converges but produces smooth, blurry outputs.

The content term is a squared difference between feature maps of the sharp image and of the restored image, taken from the VGG-19 conv3.3 layer, which the authors use because deeper layers encode more abstract features. \\\[ L\_X = \\frac{1}{W\_{i,j}H\_{i,j}} \\sum\_{x=1}^{W\_{i,j}} \\sum\_{y=1}^{H\_{i,j}} \\left(\\phi\_{i,j}(I\_S)\_{x,y} - \\phi\_{i,j}(G\_{\\theta\_G}(I\_B))\_{x,y}\\right)^2 \\\] Here φ i,j is the feature map after the j-th convolution and activation, before the i-th max-pooling layer in the ImageNet-pretrained VGG19, and W i,j and H i,j are the feature-map dimensions.

In the authors' account the content term handles general image content and the adversarial term handles texture detail, and training without the perceptual term or with plain MSE on pixels did not reach a meaningful state.

## Generator and critic design

The generator follows the style-transfer network of Johnson et al. and contains two strided convolution blocks, nine residual blocks and two transposed convolution blocks. Each residual block has a convolution layer, an instance normalization layer and a ReLU activation, and a dropout step with probability 0.5 follows the first convolution in each block.

A global skip connection, named ResOut, makes the network predict a residual correction IR that is added to the blurred input, so the output is IS = IB + IR. The authors report that this formulation makes training faster and the resulting model generalizes better. The critic copies the PatchGAN design, with every convolution except the last followed by instance normalization and a LeakyReLU with slope 0.2.

## Synthetic blur from random trajectories

Pairs of sharp and blurred images are usually made by averaging frames from a high frame-rate video, which yields realistic blur but restricts the scenes to those in the captured footage. Other synthetic approaches convolve sharp images with linear motion kernels, or with spline-shaped kernels built from a few random points, which gives less variety of non-linear blur.

The authors follow random trajectory generation, in which a complex-valued trajectory vector describes the discrete positions of a point moving in 2D, and sub-pixel interpolation of that trajectory produces the kernel. Each step of the trajectory is drawn from a Markov process that uses the previous velocity and position, a Gaussian perturbation, an occasional impulsive perturbation and a deterministic inertia term.

Algorithm 1 sets M = 2000 iterations, Lmax = 60, ps = 0.001, and draws the inertia I, the big-shake probability pb, the Gaussian-shake probability pg and the initial angle φ from uniform ranges (0,0.7), (0,0.2), (0,0.7) and (0,2π). The generated trajectory is convolved with a sharp image to give the blurred training input.

## Training the three DeblurGAN variants

DeblurGANWILD is trained on 256x256 random crops from 1000 GoPro training images downscaled by a factor of two. DeblurGANSynth is trained on 256x256 patches from MS COCO images that are blurred with the synthetic generator. DeblurGANComb is trained on a mix of synthetic and high frame-rate images in a 2:1 ratio of synthetically generated to high frame-rate images.

All models were trained with batch size 1, which the authors found gave better validation results.

## Restoration quality on GoPro and Kohler

On the GoPro test set of 1111 images, using the linear subset, DeblurGANComb reached a PSNR of 28.7 and an SSIM of 0.958. Sun et al. reached 24.6 PSNR and 0.842 SSIM, Xu et al. 25.1 and 0.89, DeblurGANWILD 27.2 and 0.954, and DeblurGANSynth 23.6 and 0.884.

The authors read the SSIM result as superior and the PSNR result as close to the state of the art, and note that their loss does not use an L2 distance in pixel space, so the network is not directly optimized for PSNR. DeblurGAN uses 0.85 s per image on a single GPU, and the authors state a speed-up of 5x over the fastest competitor. The authors also report more than 6x fewer parameters than the multi-scale CNN of Nah et al.

The Kohler dataset consists of 4 images, each blurred with 12 kernels, and is a standard benchmark for blind deblurring. On this dataset Xu et al. has the highest PSNR at 27.47, while the DeblurGAN variants reach PSNR values between 25.67 and 26.10. DeblurGANWILD reaches the highest SSIM in Table 2 at 0.816, and the other variants range from 0.792 to 0.802.

## Effect on YOLO detection

Ground truth is YOLO's own output on the sharp images, checked visually, and YOLO is then run on the blurred and restored images to compute average recall and precision against that ground truth.

Without deblurring, YOLO reaches precision 0.821, recall 0.437 and F1 0.570; with Nah et al. these are 0.834, 0.552 and 0.665. DeblurGANWILD gives 0.764, 0.631 and 0.691, DeblurGANSynth 0.801, 0.517 and 0.628, and DeblurGANComb recall 0.742 and F1 0.704. DeblurGANComb therefore has the highest recall and F1 in Table 3, but its precision of 0.671 is lower than the 0.821 without deblurring.

The authors attribute the generally higher precision on blurry images to the lack of sharp object boundaries, which leaves small objects undetected.

## Regularization and training cost

Adding total variation regularization to the training gave a PSNR of 27.9 on GoPro, against 28.7 for the model trained without it.

One DeblurGAN network took 6 days to train on a single Maxwell GTX Titan-X GPU. This figure is a training cost; the 0.85 s per image reported earlier is the inference time of the generator.

## Limitations

Precision in the detection evaluation drops for DeblurGANComb, and the authors' detection benchmark uses YOLO both to produce the ground truth and to measure the results. Only YOLO is used as the detector, so the detection gain was not tested on other detectors.

On the Kohler dataset the PSNR of every DeblurGAN variant is below that of Xu et al., and the DeblurGANSynth variant scores lowest on the GoPro test set. The Nah et al. PSNR of 29.1 comes from the gamma subset, so the PSNR comparison with the linear-subset results is not under one condition. The evaluations use the GoPro test set, the Kohler dataset and the 410-pair street dataset, so results beyond these are not reported.

## Paper info

- **Authors**: Orest Kupyn, Volodymyr Budzan, Mykola Mykhailych, Dmytro Mishkin, Jiri Matas
- **Venue**: arXiv · Preprint
- **First published**: 2017-11-19
- **Added**: 2026-11-12
- **Updated**: 2018-4-3
- **Version**: v4
- **arXiv**: 1711.07064
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1711.07064v4) · [PDF ↗](https://arxiv.org/pdf/1711.07064v4)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Orest Kupyn, Volodymyr Budzan, Mykola Mykhailych, Dmytro Mishkin, Jiri Matas (2017). DeblurGAN: Blind Motion Deblurring Using Conditional Adversarial Networks. arXiv:1711.07064v4. https://arxiv.org/abs/1711.07064v4

**BibTeX**

```
@misc{kupyn2017deblurgan,
  title = {{DeblurGAN: Blind Motion Deblurring Using Conditional Adversarial Networks}},
  author = {Orest Kupyn and Volodymyr Budzan and Mykola Mykhailych and Dmytro Mishkin and Jiri Matas},
  year = {2017},
  eprint = {1711.07064},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.07064v4}
}
```

## Other paper commentary

- [Ups and Downs: Modeling the Visual Evolution of Fashion Trends with One-Class Collaborative Filtering](https://refivu.com/en/papers/c7f79e17-0229-4098-a2b0-1f184335cf4d-ups-and-downs-modeling-the-visual-evolution-of.md)
- [ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardware](https://refivu.com/en/papers/40299bf6-79d4-4e50-829c-39acb400238f-proxylessnas-direct-neural-architecture-search-on-target.md)
- [Beyond Correlation Filters: Learning Continuous Convolution Operators for Visual Tracking](https://refivu.com/en/papers/cc3e5d8d-4cc2-494c-bc24-c9b0fd010736-beyond-correlation-filters-learning-continuous-convolution.md)
- [3D Semantic Segmentation with Submanifold Sparse Convolutional Networks](https://refivu.com/en/papers/03d04653-f014-489b-8502-00fe22ca0646-3d-semantic-segmentation-with-submanifold-sparse.md)
- [Sigmoid Loss for Language Image Pre-Training](https://refivu.com/en/papers/c9aaadc4-ef69-4682-a730-51fb42cbb35f-sigmoid-loss-for-language-image-pre-training.md)
- [Towards Open Set Deep Networks](https://refivu.com/en/papers/2821701d-d008-4717-86f5-1119fb0809bf-towards-open-set-deep-networks.md)
- [IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models](https://refivu.com/en/papers/fd8adfd8-142d-4826-85e2-96e825c8d373-ip-adapter-text-compatible-image-prompt-adapter-for.md)
- [Sequence Transduction with Recurrent Neural Networks](https://refivu.com/en/papers/882824aa-8ddf-4d40-8608-c68a08ecc168-sequence-transduction-with-recurrent-neural-networks.md)
- [MemGPT: Towards LLMs as Operating Systems](https://refivu.com/en/papers/bee01795-9fbb-4af1-af4c-8b4bff391e4b-memgpt-towards-llms-as-operating-systems.md)
- [Enhanced-alignment Measure for Binary Foreground Map Evaluation](https://refivu.com/en/papers/668b22a3-321a-4e3f-9465-2c7d6fb8ea23-enhanced-alignment-measure-for-binary-foreground-map.md)
- [A Survey on Multimodal Large Language Models](https://refivu.com/en/papers/3b7ae094-f8ab-4e29-a2fd-d41b1efe8cc0-a-survey-on-multimodal-large-language-models.md)
- [How to Fine-Tune BERT for Text Classification?](https://refivu.com/en/papers/b42bc4b9-8309-43db-89e9-41cd1d0ec800-how-to-fine-tune-bert-for-text-classification.md)

## Terms in this paper

- [dropout](https://refivu.com/en/terms/db73f75bbdd3-dropout)
- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [Generative adversarial networks](https://refivu.com/en/terms/889f2a50b737-generative-adversarial-networks)
- [recall](https://refivu.com/en/terms/3774987267f3-recall)
- [generator](https://refivu.com/en/terms/2935313c9c21-generator)
- [adversarial loss](https://refivu.com/en/terms/6ecebb64a13d-adversarial-loss)
- [critic](https://refivu.com/en/terms/d044411e630c-critic)
- [Perceptual loss](https://refivu.com/en/terms/8ced141e2959-perceptual-loss)
- [Instance Normalization](https://refivu.com/en/terms/a80f303a09b9-instance-normalization)
- [PatchGAN](https://refivu.com/en/terms/efd550faca6e-patchgan)
- [pix2pix](https://refivu.com/en/terms/64742127c2f8-pix2pix)
- [WGAN-GP](https://refivu.com/en/terms/f80238817a09-wgan-gp)
- [YOLO](https://refivu.com/en/terms/e8e35b7e8a6b-yolo)
- [VGG-19](https://refivu.com/en/terms/90d1064daefc-vgg-19)
- [conditional GAN](https://refivu.com/en/terms/77ac71879968-conditional-gan)
- [gradient penalty](https://refivu.com/en/terms/084724b3234b-gradient-penalty)
- [Wasserstein GAN](https://refivu.com/en/terms/f86cf2fbc207-wasserstein-gan)
- [Lipschitz constraint](https://refivu.com/en/terms/d2db27489600-lipschitz-constraint)
- [MS COCO dataset](https://refivu.com/en/terms/ddda13cfbe07-ms-coco-dataset)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/bcd086aa-43d4-404f-aae8-d730dc8d20db-deblurgan-blind-motion-deblurring-using-conditional)
