Giter Club home page Giter Club logo

gp-dip's Introduction

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 -c pytorch
conda install -c pytorch torchvision 

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}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.