## BluRef: Dense Matching for Unsupervised Reference-Based Image Deblurring

The official pytorch implementation of this paper is built upon the repo of [NAFNet](https://arxiv.org/abs/2204.04676)

### Prepration
You can download GoPro and RB2V dataset at put them within `./datasets`

### Installation

```python
python 3.9.5
pytorch 1.11.0
cuda 11.3
```

```
git clone https://github.com/megvii-research/NAFNet
cd NAFNet
pip install -r requirements.txt
python setup.py develop --no_cuda_ext
```

### Training
```bash
bash train.sh
```

### Testing
```bash
bash test.sh
```


