• Stars
    star
    479
  • Rank 91,752 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Tensorflow implementation of Capsule Networks

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: