# Blind deblurring from synthetic data MVA project 2024 on [image restoration](https://delires.wp.imt.fr/) - Jamy Lafenetre - Balthazar Neveu ------ In the paper [Synthetic images as a regularity prior for image restoration neural networks](https://hal.science/hal-03186499/file/papier_SSVM%20%281%29.pdf) by *Raphaël Achddou, Yann Gousseau, Saïd Ladjal*, it was shown that a deep neural network can be trained for denoising solely from synthetic dead leave images and does perform relatively well on natural images. We propose to explore several tracks: - Use a [NAFNET](https://github.com/megvii-research/NAFNet) architecture - Extend deadleaves with extra primitives (lines, diamond shapes, colored gradients) - Try to see if the generalization property to natural images observed in denoising holds for deblurring. ![](https://huggingface.co/spaces/balthou/image-deblurring/resolve/main/illustrations/blind_deblur_teaser_figure.png) We first validated that NAFNet trained on deadleaves performed well on the blind denoising task. Below you can see that it also performs correctly on natural images, although the performances are not as good as a network purely trained on natural images. | Qualitative results at SNR in = 20dB | Quantitative results | :---: | :---: | | ![](https://huggingface.co/spaces/balthou/image-deblurring/resolve/main/illustrations/deadleaves_vs_natural_with_psnr.png) | ![](https://huggingface.co/spaces/balthou/image-deblurring/resolve/main/illustrations/cross_val_natural.png) Finally, when applying the deadleaves training to the blind deblurring problem, one of the advantage we have notticed is that the network always tries to deblur even when the level of blur is high. On the contrary, when trained on natural images, the NAFNEt does not work so well when the blur level is too big. |Blind deblurring results| |:----:| | ![](https://huggingface.co/spaces/balthou/image-deblurring/resolve/main/illustrations/deblur_results.png) | |Deblurring result for different amount of blur, using Nafnet trained on Div2K or deadleaves. From left to right column: ”small”, ”mild” and ”big” blur kernels to degrade the input. **Top row**: input image. **Middle row**: output of NafNet trained on deadleaves. **Bottom row**: output of NafNet trained on Div2K.| |![](https://huggingface.co/spaces/balthou/image-deblurring/resolve/main/illustrations/deblur_table.png) | **Conclusion** : - Using extra primitives to pure deadleaves seems like a good idea but did not bring as much as we'd expected. A rework by adding anisotropy and extra geometric shapes could lead to significantly better results. - Training on deadleaves images brings a lot of stability in trainings (as the image distribution is basically always the same, providing a fair amount of learning signal) and can be seen as a good pretext task before to the real dataset.