Skip to content

Implementation of paper "Dynamic Routing Between Capsules".

Notifications You must be signed in to change notification settings

zbetmen1/CapsNet

Repository files navigation

CapsNet

This repository contains Tensorflow implementation of Capsule Network with dynamic routing between capsules and follows the paper "Dynamic Routing Between Capsules". Note that this implementation makes extensive use of Keras as high level Tensorflow interface. Paper was followed as closely as possible, however some details of that work were not revealed. These include value of decay rate and exponential decay formula. Three common variants are:

  1. lr*(decay ^ epoch) <- used in this implementation
  2. lr*(e ^ (-k * step)))
  3. lr*(decay_rate ^ (step / decay_steps)) <- Tensorflow provides this formulation (decay_rate and decay_steps are parameters)

Currently, no visualization code is present and this repository will change including adding tests on other datasets and pretrained models.

There are many open source implementations of CapsNet released before the official implementation, some that I've looked at are listed bellow:

Official implementation can be found in repository Sarasra/models on path 'research/capsule'. In this repo many details that were not presented in the paper are revealed (hyperparameter values, usage of bias etc.).

About

Implementation of paper "Dynamic Routing Between Capsules".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages