- Implemented the paper https://arxiv.org/pdf/1804.07723 by Guilin Liu, Fitsum A. Reda, Kevin J. Shih, Ting-Chun Wang, Andrew Tao, Bryan Catanzaro
- Implementation has been done in Keras.
- Achieved PSNR(Peak-Signal-to-Noise-Ratio) of 15.76 on validation images.
- Requirements : Python 3.6 onwards, keras 2.2.4
- Notebook used : Google Colaboratory notebook
- Hardware Accelerator : GPU
- Dataset Download link : https://s3-ap-southeast-1.amazonaws.com/he-public-data/DL%23+Beginner.zip
- From training on the dataset provided in the Details section, directly run inpainting-notebook
- For training on your own dataset, use the same architecture with a dataset of your own.
- The first task required creating masks for the images.
Used OpenCV to make a random mask generator.
Here are a few results of the random masks:
*
- As cited in the paper
- Let W be the convolution filter weights for the convolution filter and b its the corresponding bias. X are the feature values (pixels values) for the current convolution (sliding) window and M is the corresponding binary mask. The partial convolution at every location, is expressed as: