Skip to content

A tensorflow implemention of CapsNet in Geoffrey Hinton's paper Dynamic Routing Between Capsules

License

Notifications You must be signed in to change notification settings

VectorFist/CapsNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CapsNet

License

A tensorflow implemention of CapsNet in Geoffrey Hinton's paper Dynamic Routing Between Capsules. NIPS 2017 capsnet

A capsule is a group of neurons whose activity vector represents the instantiation parameters of a specific type of entity such as an object or an object part. We use the length of the activity vector to represent the probability that the entity exists and its orientation to represent the instantiation parameters. Active capsules at one level make predictions, via transformation matrices, for the instantiation parameters of higher-level capsules. When multiple predictions agree, a higher level capsule becomes active.

Requirements

Usage

Step 1. Clone this repository with git.

$ git clone https://github.com/VectorFist/CapsNet.git
$ cd CapsNet

Step 2. Download the MNIST dataset, extract it into MNIST_data directory.

Step 3. Start the training:

$ python run_capsnet.py

Step 4. Test capsnet model:

$ python run_capsnet.py --run_mode=test

About

A tensorflow implemention of CapsNet in Geoffrey Hinton's paper Dynamic Routing Between Capsules

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages