Skip to content

sulaimanvesal/CapsNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

CapsNet (Code Added for MNIST, Cifer10 and Cat and Dog Datasets)

We want to implement the CapsNet model based on @XifengGo implementation: Here is a pipline of CapsNet, the neural network architecture using Capsules.

1*0NxktTeAhqNyRa411M3LXA.jpeg
Source: Capsule Network paper: https://arxiv.org/abs/1710.09829

NIPS 2017 Paper:

The 2011 paper:

  • Transforming Autoencoders
  • by Geoffrey E. Hinton, Alex Krizhevsky and Sida D. Wang
  • https://goo.gl/ARSWM6

CapsNet implementations:

CapsNet Videos:

Cifer10

Cnn.PNG
*fchollet CNN: "It gets to 75% validation accuracy in 25 epochs, and 79% after 50 epochs.
(it's still underfitting at that point, though)." https://github.com/fchollet/keras/blob/master/examples/cifar10_cnn.py
Cifer10.png
*CapsNet model implemented in keras with the same architecture in the paper: https://arxiv.org/abs/1710.09829

We trained the CapsNet model through @XifengGo implementation in keras with slight changes, the hyperparameters set as following:

epochs = 300
lam_recon = 1.563
num_routing = 3
lr = 0.0001
Optimizer = Adam 

It can be seen that the model is still underfitting and there should be space for improvement in the classification.

Cifer102.png
*Validation CapsNet and Validation loss for Cifer10 Dataset

About

CapsulNet Implementation in Keras

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages