Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 2.21 KB

README.md

File metadata and controls

54 lines (41 loc) · 2.21 KB

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