All Projects → laodar → tf_CapsNet

laodar / tf_CapsNet

Licence: other
A tensorflow implementation for CapsNet

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to tf CapsNet

CapsNet
Empirical studies on Capsule Network representation and improvements implemented with PyTorch.
Stars: ✭ 39 (+105.26%)
Mutual labels:  capsnet, dynamic-routing-between-capsules
capsules-tensorflow
Another implementation of Hinton's capsule networks in tensorflow.
Stars: ✭ 18 (-5.26%)
Mutual labels:  capsnet, capsules
capsnet.mxnet
MXNet implementation of CapsNet
Stars: ✭ 30 (+57.89%)
Mutual labels:  capsnet, dynamic-routing-between-capsules
CapsNet-keras-imdb
No description or website provided.
Stars: ✭ 15 (-21.05%)
Mutual labels:  capsnet
Capsnet Visualization
🎆 A visualization of the CapsNet layers to better understand how it works
Stars: ✭ 371 (+1852.63%)
Mutual labels:  capsnet
Capsule Gan
Code for my Master thesis on "Capsule Architecture as a Discriminator in Generative Adversarial Networks".
Stars: ✭ 120 (+531.58%)
Mutual labels:  capsnet
CapsuleLayer
PyTorch Capsule Layer
Stars: ✭ 28 (+47.37%)
Mutual labels:  capsnet
Dynamic routing between capsules
Implementation of Dynamic Routing Between Capsules, Sara Sabour, Nicholas Frosst, Geoffrey E Hinton, NIPS 2017
Stars: ✭ 202 (+963.16%)
Mutual labels:  capsnet
Variational Capsule Routing
Official Pytorch code for (AAAI 2020) paper "Capsule Routing via Variational Bayes", https://arxiv.org/pdf/1905.11455.pdf
Stars: ✭ 84 (+342.11%)
Mutual labels:  capsnet
Matrix Capsules With Em Routing
A TensorFlow implementation of "Matrix Capsules with EM Routing" by Hinton et al. (2018).
Stars: ✭ 74 (+289.47%)
Mutual labels:  capsnet
Capsnet Traffic Sign Classifier
A Tensorflow implementation of CapsNet(Capsules Net) apply on german traffic sign dataset
Stars: ✭ 166 (+773.68%)
Mutual labels:  capsnet
Capsnet Nlp
CapsNet for NLP
Stars: ✭ 66 (+247.37%)
Mutual labels:  capsnet
Capsnet Tensorflow
A Tensorflow implementation of CapsNet(Capsules Net) in paper Dynamic Routing Between Capsules
Stars: ✭ 3,776 (+19773.68%)
Mutual labels:  capsnet
Capsnet
A PyTorch implementation of CapsNet based on NIPS 2017 paper "Dynamic Routing Between Capsules"
Stars: ✭ 141 (+642.11%)
Mutual labels:  capsnet
Capslayer
CapsLayer: An advanced library for capsule theory
Stars: ✭ 351 (+1747.37%)
Mutual labels:  capsnet
Capsnet Keras
A Keras implementation of CapsNet in NIPS2017 paper "Dynamic Routing Between Capsules". Now test error = 0.34%.
Stars: ✭ 2,428 (+12678.95%)
Mutual labels:  capsnet
Capsnet guide pytorch
A tutorial-style implementation of CapsNet in PyTorch
Stars: ✭ 104 (+447.37%)
Mutual labels:  capsnet
Capsnet Pytorch
PyTorch implementation of NIPS 2017 paper Dynamic Routing Between Capsules
Stars: ✭ 440 (+2215.79%)
Mutual labels:  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 (-15.79%)
Mutual labels:  capsnet
CapsNet-Fashion-MNIST
Capsule Network on Fashion MNIST dataset
Stars: ✭ 93 (+389.47%)
Mutual labels:  capsnet

A tensorflow implementation for CapsNet

Network configuration

According to Hinton's paper Dynamic Routing Between Capsules

Train your model

python main.py

you can switch the is_multi_mnist to change the training set between Mnist and MultiMnist

Classification result on Mnist

batch_size = 64, lr = 0.001, beta1 = 0.9, decay_freq = 2k steps, min_lr = 1e-6, after 10k+ steps

is_shift_augmentation = True

image image

Results on MultiMnist

is_shift_agumentation = False

  • classification

batch_size = 128, lr = 0.001, beta1 = 0.9, after 30k+ training steps

image

  • segmenting

batch_size = 64, lr = 0.001, beta1 = 0.9, decay_freq = 2k steps, min_lr = 1e-6, after 10k+ steps

Here are some images showing the results of segmenting highly overlapping digits:

  • image generation condition on class

I generated some images from random DigitCapsule vectors near the unit sphere :

as we can see, it's not so real, but the pervious images show good results. and notice that Figure 4 in the paper is reconstructed from the neighbourhood of real images' embeding, this may mean that the real images didn't fill all the region around the unit sphere. I think this is due to the autoencoder regularization but not the VAE regularization.

Notice

  • The accuracy metric on MultiMnist may be different from the paper
  • Better results will be got if we run more iterations
  • The error rate on test set as showed in figures is only evaluated on one random varing test batch, but not the whole test set.
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].