Coder Social home page Coder Social logo

klampropoulos / pytorch-bayesiancnn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kumar-shridhar/pytorch-bayesiancnn

0.0 1.0 0.0 18.78 MB

Bayesian Convolutional Neural Network with Variational Inference based on Bayes by Backprop in PyTorch.

Jupyter Notebook 86.09% Python 13.91%

pytorch-bayesiancnn's Introduction

Bayesian CNN with Variational Inference and it's application

In this repo Bayesian Convolutional Neural Network (BayesCNN) using Variational Inference is proposed, that introduces probability distribution over the weights. Furthermore, the proposed BayesCNN architecture is applied to tasks like Image Classification, Image Super-Resolution and Generative Adversarial Networks.

BayesCNN is based on Bayes by Backprop which derives a variational approximation to the true posterior. Our proposed method not only achieves performances equivalent to frequentist inference in identical architectures but also incorporate a measurement for uncertainties and regularisation. It further eliminates the use of dropout in the model. Moreover, we predict how certain the model prediction is based on the epistemic and aleatoric uncertainties and finally, we propose ways to prune the Bayesian architecture and to make it more computational and time effective.


Folder Structure and Content

Image Recognition

  • The Bayesian CNN is applied to the task of Image Recognition and the results are compared to frequentist architectures for MNIST, CIFAR10 and CIFAR100 datasets.

  • A measure of uncertainty is added with the prediction and the epistemic and aleatoric uncertainty is estimated.

  • Bayesian AlexNet, LeNet and 3Conv3FC is proposed and applied to Image recognition tasks.

  • Code and implementation details available at: Bayesian CNN Image Recognition


Super Resolution

  • Bayesian CNN is applied to the task of Super Resolution on BSD300 dataset and the results are compared to other methods.

  • Implementation and code is available here : PyTorch Bayesian Super Resolution


Paper

  • Paper contains the paper about the Bayesian CNN with Variational Inference. The paper is also available on Arxiv: Bayeisan CNN with Variational Inference

  • Feel free to cite the author, if the work is any help to you:

@article{shridhar2018bayesian,
  title={Bayesian Convolutional Neural Networks with Variational Inference},
  author={Shridhar, Kumar and Laumann, Felix and Llopart Maurin, Adrian and Olsen, Martin and Liwicki, Marcus},
  journal={arXiv preprint arXiv:1806.05978},
  year={2018}
}

Thesis

  • Thesis contains the detailed explaination of all the concepts mentioned from background knowledge to empirical analysis and conclusion.

  • Thesis chapters overview is available here: Master Thesis BayesianCNN


Contact


pytorch-bayesiancnn's People

Contributors

kumar-shridhar avatar purvanshi avatar shigengtian avatar

Watchers

James Cloos avatar

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.