All Projects → Soonhwan-Kwon → capsnet.mxnet

Soonhwan-Kwon / capsnet.mxnet

Licence: other
MXNet implementation of CapsNet

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to capsnet.mxnet

CapsNet-tensorflow-jupyter
A simple tensorflow implementation of CapsNet (by Dr. G. Hinton), based on my understanding. This repository is built with an aim to simplify the concept, implement and understand it.
Stars: ✭ 16 (-46.67%)
Mutual labels:  capsule, hinton, dynamic-routing, capsnet
Capsnet Tensorflow
A Tensorflow implementation of CapsNet(Capsules Net) in paper Dynamic Routing Between Capsules
Stars: ✭ 3,776 (+12486.67%)
Mutual labels:  capsule, dynamic-routing, capsnet
Capsnet Keras
A Keras implementation of CapsNet in NIPS2017 paper "Dynamic Routing Between Capsules". Now test error = 0.34%.
Stars: ✭ 2,428 (+7993.33%)
Mutual labels:  capsule, dynamic-routing, capsnet
CapsNet
Empirical studies on Capsule Network representation and improvements implemented with PyTorch.
Stars: ✭ 39 (+30%)
Mutual labels:  hinton, capsnet, dynamic-routing-between-capsules
capsules-tensorflow
Another implementation of Hinton's capsule networks in tensorflow.
Stars: ✭ 18 (-40%)
Mutual labels:  hinton, capsnet
tf CapsNet
A tensorflow implementation for CapsNet
Stars: ✭ 19 (-36.67%)
Mutual labels:  capsnet, dynamic-routing-between-capsules
CapsuleLayer
PyTorch Capsule Layer
Stars: ✭ 28 (-6.67%)
Mutual labels:  capsule, capsnet
Capsnet
CapsNet (Capsules Net) in Geoffrey E Hinton paper "Dynamic Routing Between Capsules" - State Of the Art
Stars: ✭ 423 (+1310%)
Mutual labels:  mxnet, capsnet
SegCaps
A Clone version from Original SegCaps source code with enhancements on MS COCO dataset.
Stars: ✭ 62 (+106.67%)
Mutual labels:  capsule
lipnet
LipNet with gluon
Stars: ✭ 16 (-46.67%)
Mutual labels:  mxnet
MXNetSharp
MXNet bindings for .NET/F#
Stars: ✭ 14 (-53.33%)
Mutual labels:  mxnet
crnn.mxnet
crnn in mxnet.can train with chinese characters
Stars: ✭ 47 (+56.67%)
Mutual labels:  mxnet
mtomo
Multiple types of NN model optimization environments. It is possible to directly access the host PC GUI and the camera to verify the operation. Intel iHD GPU (iGPU) support. NVIDIA GPU (dGPU) support.
Stars: ✭ 24 (-20%)
Mutual labels:  mxnet
nih-chest-xray
Identifying diseases in chest X-rays using convolutional neural networks
Stars: ✭ 83 (+176.67%)
Mutual labels:  mxnet
DLARM
DLARM: Dissertation for Computer Science Masters Degree at UFRGS
Stars: ✭ 24 (-20%)
Mutual labels:  mxnet
mlreef
The collaboration workspace for Machine Learning
Stars: ✭ 1,409 (+4596.67%)
Mutual labels:  mxnet
sfd.gluoncv
Reproduce SFD face detector using gluon-cv
Stars: ✭ 23 (-23.33%)
Mutual labels:  mxnet
OpSummary.MXNet
A tool to count operators and parameters of your MXNet-Gluon model.
Stars: ✭ 19 (-36.67%)
Mutual labels:  mxnet
sentiment-analysis2
Sentiment ananlysis in keras and mxnet
Stars: ✭ 37 (+23.33%)
Mutual labels:  mxnet
gluon2pytorch
Gluon to PyTorch deep neural network model converter
Stars: ✭ 72 (+140%)
Mutual labels:  mxnet

CapsNet-MXNet

This example is MXNet implementation of CapsNet:
Sara Sabour, Nicholas Frosst, Geoffrey E Hinton. Dynamic Routing Between Capsules. NIPS 2017

  • The current best test error is 0.29% and average test error is 0.303%
  • The average test error on paper is 0.25%

Log files for the error rate are uploaded in repository.


Usage

Install scipy with pip

pip install scipy

Install tensorboard with pip

pip install tensorboard

On Single gpu

python capsulenet.py --devices gpu0

On Multi gpus

python capsulenet.py --devices gpu0,gpu1

Full arguments

python capsulenet.py --batch_size 100 --devices gpu0,gpu1 --num_epoch 100 --lr 0.001 --num_routing 3 --model_prefix capsnet

Prerequisities

MXNet version above (0.11.0)
scipy version above (0.19.0)


Results

Train time takes about 36 seconds for each epoch (batch_size=100, 2 gtx 1080 gpus)

CapsNet classification test error on MNIST

python capsulenet.py --devices gpu0,gpu1 --lr 0.0005 --decay 0.99 --model_prefix lr_0_0005_decay_0_99 --batch_size 100 --num_routing 3 --num_epoch 200

Trial Epoch train err(%) test err(%) train loss test loss
1 120 0.06 0.31 0.0056 0.0064
2 167 0.03 0.29 0.0048 0.0058
3 182 0.04 0.31 0.0046 0.0058
average - 0.043 0.303 0.005 0.006

We achieved the best test error rate=0.29% and average test error=0.303%. It is the best accuracy and fastest training time result among other implementations(Keras, Tensorflow at 2017-11-23). The result on paper is 0.25% (average test error rate).

Implementation test err(%) ※train time/epoch GPU Used
MXNet 0.29 36 sec 2 GTX 1080
tensorflow 0.49 ※ 10 min Unknown(4GB Memory)
Keras 0.30 55 sec 2 GTX 1080 Ti
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].