|
|
6 years ago | |
|---|---|---|
| datasets | 6 years ago | |
| facades/github | 6 years ago | |
| models | 6 years ago | |
| myutils | 6 years ago | |
| pretrained_models | 6 years ago | |
| transforms | 6 years ago | |
| README.md | 6 years ago | |
| kernel.mat | 6 years ago | |
| misc.py | 6 years ago | |
| test_data_generation.m | 6 years ago | |
| test_face_deblur.py | 6 years ago | |
| train_face_deblur.py | 6 years ago | |
README.md
UMSN-Face-Deblurring
Deblurring Face Images using Uncertainty Guided Multi-Stream Semantic Networks
Rajeev Yasarla, Federico Perazzi, Vishal M. Patel
We propose a novel multi-stream architecture and training methodology that exploits semantic labels for facial image deblurring. The proposed Uncertainty Guided MultiStream Semantic Network (UMSN) processes regions belonging to each semantic class independently and learns to combine their outputs into the final deblurred result. Pixel-wise semantic labels are obtained using a segmentation network. A predicted confidence measure is used during training to guide the network towards challenging regions of the human face such as the eyes and nose. The entire network is trained in an endto-end fashion.
Prerequisites:
- Linux
- Python 2 or 3
- CPU or NVIDIA GPU + CUDA CuDNN (CUDA 8.0)
To test UMRL:
- Download test datasets provided the authors of Ziyi et al.
- run test_data_generation.m
- It renames the files counting from example 000001.png
- python test_face_deblur.py --dataroot ./facades/github/ --valDataroot <path_to_test_data> --netG ./pretrained_models/Deblur_epoch_Best.pth
To train UMRL:
python train_face_deblur.py --dataroot <path_to_train_data> --valDataroot ./facades/github/ --exp ./face_deblur --batchSize 10
- input should be clean image. blurry images for training are generated by the code it self.