Skip to content

Keras implementation of 'Dynamic Routing Between Capsules' by Sabour, Frosst and Hinton. (NIPS 2017)

License

Notifications You must be signed in to change notification settings

PrzemekPobrotyn/Keras-Capsule-Networks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keras-Capsule-Networks

Keras implementation of Sara Sabour, Nicholas Frosst, Geoffrey E Hinton. Dynamic Routing Between Capsules. NIPS 2017.

Results

After training for 50 epochs with Adam (default parameters) and learning rate decay by factor of 0.9 after every epoch, the best test set error was 0.34%.

The paper reported average test set error of 0.25%. Number of epochs and learning rate decay scheme were not specified in the paper.

Graphs:

Digits reconstructions using decoder network:

Reconstuctions are of poor quality, possibly due to not enough epochs of training.

Training speed

Training on Google Colab (Tesla K80 GPU) took around 300s per epoch.

Possible improvements and further work

  • Investigate poor quality of digits reconstructions and improve them
  • Once reconstructions are improved, visualize how changing capsule's dimensions affects reconstruction
  • Add docstrings and more comments explaining what's happening in the code
  • Test on other datasets (CIFAR10, smallNORB, MultiMNIST)

References

Keras implementation by Xifeng Guo, especially the implementation of the masking layer.

About

Keras implementation of 'Dynamic Routing Between Capsules' by Sabour, Frosst and Hinton. (NIPS 2017)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages