XifengGuo/CapsNet-Keras
A Keras implementation of Capsule Networks (CapsNet) from the 2017 NIPS paper 'Dynamic Routing Between Capsules'.

This repository provides a Keras implementation of CapsNet, a neural network architecture proposed by Sara Sabour, Nicholas Frosst, and Geoffrey Hinton. The model uses dynamic routing between capsules to preserve hierarchical pose relationships, which the authors argue better captures spatial hierarchies than traditional CNNs. The implementation supports TensorFlow 1.2 and 2.x, trains on MNIST dataset, and achieves competitive test error rates around 0.30-0.34%.
Frequently asked
- What is XifengGuo/CapsNet-Keras?
- A Keras implementation of Capsule Networks (CapsNet) from the 2017 NIPS paper 'Dynamic Routing Between Capsules'.
- Is CapsNet-Keras open source?
- Yes — XifengGuo/CapsNet-Keras is open source, released under the MIT license.
- What language is CapsNet-Keras written in?
- XifengGuo/CapsNet-Keras is primarily written in Python.
- How popular is CapsNet-Keras?
- XifengGuo/CapsNet-Keras has 2.5k stars on GitHub.
- Where can I find CapsNet-Keras?
- XifengGuo/CapsNet-Keras is on GitHub at https://github.com/XifengGuo/CapsNet-Keras.