ZezhouCheng / GP-DIP

Code for A Bayesian Perspective on the Deep Image Prior (CVPR 2019)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Bayesian Perspective on the Deep Image Prior (CVPR 2019)

This repository contains the source code for the CVPR 2019 paper A Bayesian Perspective on the Deep Image Prior.

[Paper] [Supplementary] [arXiv] [Project page]

Installation

Our implementation is based on the code from Deep Image Prior [Ulyanov et al. CVPR 2018]. Refer to their project page for installation. (Dependencies: python = 3.6; pytorch = 0.4; numpy; scipy; matplotlib; scikit-image; jupyter; seaborn; _pickle)

Recommanded way to install:

conda create -n GP-DIP python=3.6 anaconda
source activate GP-DIP
cat /usr/local/cuda/version.txt # check out the CUDA version
conda install pytorch=0.4.1 cuda80 torchvision -c pytorch

To run the GP_RBF_Inpainting.ipynb, gpytorch is required (Dependencies: python >= 3.6; pyTorch >= 1.0).

Tutorials

  • 1D_toy_example.ipynb: priors and posterior with 1D convolutional networks.

  • Image_Denoising.ipynb: compare the SGD variants and SGLD on image denoising task

  • Image_Inpainting.ipynb: compare the SGD variants and SGLD on image inpainting task

  • GP_RBF_Inpainting.ipynb: the Gaussian Process with RBF kernel for image inpainting.

  • GP_DIP_Inpainting.ipynb: the Gaussian Process with DIP kernel for image inpainting.

Datasets

Download the dataset here for the large-hole image inpainting experiments presented in our supplementary.

Citation

@inproceedings{Cheng_2019_CVPR,
	author = {Cheng, Zezhou and Gadelha, Matheus and Maji, Subhransu and Sheldon, Daniel},
	title = {A Bayesian Perspective on the Deep Image Prior},
	booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
	year = {2019}
}

About

Code for A Bayesian Perspective on the Deep Image Prior (CVPR 2019)


Languages

Language:Jupyter Notebook 99.8%Language:Python 0.2%