Capsule Networks
A Tensorflow implementation of Capsule Networks
For more information on Capsule Networks please read my Medium article.
[Update] Check out my new article with a deeper explanation on how capsules work.
This repo was largely based off of naturomics CapsNet-Tensorflow repo with the current differences being an added requirements.txt
and the MNIST dataset is included. Power users may want to refer to the naturomics repo for the latest versions.
Usage
Install the requirements and download dataset:
pip install -r requirements.txt
python download_data.py
Start training!
python main.py
Testing Accuracy
python main.py --is_training False
Visualization
Check out this Visualization Tool I built to play around with the DigitCaps vectors to see how it effects the recontructions: