All Projects → fabio-deep → Variational Capsule Routing

fabio-deep / Variational Capsule Routing

Licence: apache-2.0
Official Pytorch code for (AAAI 2020) paper "Capsule Routing via Variational Bayes", https://arxiv.org/pdf/1905.11455.pdf

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Variational Capsule Routing

Capsule Net Pytorch
[NO MAINTENANCE INTENDED] A PyTorch implementation of CapsNet architecture in the NIPS 2017 paper "Dynamic Routing Between Capsules".
Stars: ✭ 158 (+88.1%)
Mutual labels:  neural-networks, capsule-network, capsnet
Capsnet Traffic Sign Classifier
A Tensorflow implementation of CapsNet(Capsules Net) apply on german traffic sign dataset
Stars: ✭ 166 (+97.62%)
Mutual labels:  capsule-network, capsnet
Capsule Gan
Code for my Master thesis on "Capsule Architecture as a Discriminator in Generative Adversarial Networks".
Stars: ✭ 120 (+42.86%)
Mutual labels:  capsule-network, capsnet
Capsnet Keras
A Keras implementation of CapsNet in NIPS2017 paper "Dynamic Routing Between Capsules". Now test error = 0.34%.
Stars: ✭ 2,428 (+2790.48%)
Mutual labels:  capsule-network, capsnet
CapsNet
Empirical studies on Capsule Network representation and improvements implemented with PyTorch.
Stars: ✭ 39 (-53.57%)
Mutual labels:  capsnet, capsule-network
Capsnet Tensorflow
A Tensorflow implementation of CapsNet(Capsules Net) in paper Dynamic Routing Between Capsules
Stars: ✭ 3,776 (+4395.24%)
Mutual labels:  capsule-network, capsnet
CapsNet-tensorflow-jupyter
A simple tensorflow implementation of CapsNet (by Dr. G. Hinton), based on my understanding. This repository is built with an aim to simplify the concept, implement and understand it.
Stars: ✭ 16 (-80.95%)
Mutual labels:  capsnet, capsule-network
Capslayer
CapsLayer: An advanced library for capsule theory
Stars: ✭ 351 (+317.86%)
Mutual labels:  capsule-network, capsnet
capsules-tensorflow
Another implementation of Hinton's capsule networks in tensorflow.
Stars: ✭ 18 (-78.57%)
Mutual labels:  capsnet, capsule-network
Capsnet Visualization
🎆 A visualization of the CapsNet layers to better understand how it works
Stars: ✭ 371 (+341.67%)
Mutual labels:  capsule-network, capsnet
Awesome Capsule Networks
A curated list of awesome resources related to capsule networks
Stars: ✭ 896 (+966.67%)
Mutual labels:  neural-networks, capsule-network
Transfer Learning Conv Ai
🦄 State-of-the-Art Conversational AI with Transfer Learning
Stars: ✭ 1,217 (+1348.81%)
Mutual labels:  neural-networks
Kaggle Rsna
Deep Learning for Automatic Pneumonia Detection, RSNA challenge
Stars: ✭ 74 (-11.9%)
Mutual labels:  neural-networks
Super Slowmo
An attempt at a PyTorch implimentation of "Super SloMo: High Quality Estimation of Multiple Intermediate Frames for Video Interpolation"
Stars: ✭ 73 (-13.1%)
Mutual labels:  neural-networks
Capsnet tensorflow
Stars: ✭ 72 (-14.29%)
Mutual labels:  capsule-network
Discogan Tensorflow
An implementation of DiscoGAN in tensorflow
Stars: ✭ 82 (-2.38%)
Mutual labels:  neural-networks
Wav2letter
Speech Recognition model based off of FAIR research paper built using Pytorch.
Stars: ✭ 78 (-7.14%)
Mutual labels:  neural-networks
Componentarrays.jl
Arrays with arbitrarily nested named components.
Stars: ✭ 72 (-14.29%)
Mutual labels:  neural-networks
Strike With A Pose
A simple GUI tool for generating adversarial poses of objects.
Stars: ✭ 70 (-16.67%)
Mutual labels:  neural-networks
Ehcf
This is our implementation of EHCF: Efficient Heterogeneous Collaborative Filtering (AAAI 2020)
Stars: ✭ 70 (-16.67%)
Mutual labels:  neural-networks

Capsule Routing via Variational Bayes (AAAI 2020)

[Official Pytorch implementation]

Examplary code for our AAAI 2020 paper on capsule networks.

Author: Fabio De Sousa Ribeiro
E-mail: [email protected]

Overview

Modular vb-routing and conv capsule layers so you can stack them to build your own capsnet to play around with.

self.Conv_1 = nn.Conv2d(in_channels=2, out_channels=64,
    kernel_size=5, stride=2)

self.PrimaryCaps = PrimaryCapsules2d(in_channels=64, out_caps=16,
    kernel_size=3, stride=2, pose_dim=4)

self.ConvCaps = ConvCapsules2d(in_caps=16, out_caps=5,
    kernel_size=3, stride=1, pose_dim=4)

self.Routing = VariationalBayesRouting2d(in_caps=16, out_caps=5,
    cov='diag', pose_dim=4, iter=3,
    alpha0=1., # Dirichlet(pi | alpha0) prior
    m0=torch.zeros(4*4), kappa0=1., # Gaussian(mu_j | m0, (kappa0 * Lambda_j)**-1) prior
    Psi0=torch.eye(4*4), nu0=4*4+1) # Wishart(Lambda_j | Psi0, nu0) prior

97.1% test acc on smallNORB with just 1 caps layer.
98.7% with 3 caps layers (as in paper). For more see the poster in images/Poster_AAAI2020.pdf.

Run

python src/main.py

Dataset Download

  1. You can download smallNORB in .npy format and already resized to 48x48 for convenience.

Citation

@inproceedings{ribeiro2020capsule,
  title={Capsule Routing via Variational Bayes.},
  author={Ribeiro, Fabio De Sousa and Leontidis, Georgios and Kollias, Stefanos D},
  booktitle={AAAI},
  pages={3749--3756},
  year={2020}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].