Commit 3add120e authored by Jiangxin Dong's avatar Jiangxin Dong
Browse files


parent 3c5db629
...@@ -6,3 +6,55 @@ This repository is the PyTorch implementation of the paper: ...@@ -6,3 +6,55 @@ This repository is the PyTorch implementation of the paper:
Jiangxin Dong, Stefan Roth, and Bernt Schiele Jiangxin Dong, Stefan Roth, and Bernt Schiele
To appear at CVPR 2021
## Introduction
The classical maximum a-posteriori (MAP) framework for non-blind image deblurring requires defining suitable data and regularization terms, whose interplay yields the desired clear image through optimization. The vast majority of prior work focuses on advancing one of these two crucial ingredients, while keeping the other one standard. Considering the indispensable roles and interplay of both data and regularization terms, we propose a simple and effective approach to jointly learn these two terms, embedding deep neural networks within the constraints of the MAP framework, trained in an end-to-end manner. The neural networks not only yield suitable image-adaptive features for both terms, but actually predict per-pixel spatially-variant features instead of the commonly used spatially-uniform ones. The resulting spatially-variant data and regularization terms particularly improve the restoration of fine-scale structures and detail. Quantitative and qualitative results underline the effectiveness of our approach, substantially outperforming the current state of the art.
## Requirements
Compatible with Python 3
Main requirements: PyTorch 0.4.1 is tested
To install requirements:
pip install torch==0.4.1.post2 torchvision==0.2.2
pip install -r requirements.txt
## Evaluation
To evaluate the spatially-variant MAP model on test examples, select the corresponding options in '' and run:
## Pre-trained Model
./model/ (for blurry images with 1% Gaussian noise)
./model/ (for blurry images with 5% Gaussian noise)
./model/ (for blurry images with saturated pixels)
## Bibtex
Please cite our paper if it is helpful to your work:
author = {Dong, Jiangxin and Roth, Stefan and Schiele, Bernt},
title = {Learning Spatially-Variant MAP Models for Non-Blind Image Deblurring},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2021},
pages = {4886-4895}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment