# BBCU
Pytorch implementation of "Basic Binary Convolution Unit for Binarized Image Restoration Network"


## Requirements
- Python 3.8
- PyTorch >= 1.8
- numpy
- skimage
- imageio
- matplotlib
- cv2


## Test
### 1. Prepare test data 
Download [benchmark datasets](https://github.com/xinntao/BasicSR/blob/a19aac61b277f64be050cef7fe578a121d944a0e/docs/Datasets.md) (e.g., Set5, Set14 and other test sets) 



### 2. Begin to test
revise ./options/test/BBCU_SRResNet/test_BBCU_x4.yml to change datasets path

Run `./test.sh` to test on benchmark datasets. Please update `dir_data` in the bash file as `your_generate_data_path`.


## Acknowledgements
This code is built on BasicSR. We thank the authors for sharing the codes.
