Skip to content

Implemention of CapsNet from the paper Dynamic Routing Between Capsules

License

Notifications You must be signed in to change notification settings

tonysy/CapsuleNet-PyTorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CapsNet-PyTorch

I hvae crated CapsuleConv for PrimaryCapsule, CapsuleLinear for DigitCapsule

minist_toy_example.py: minist example from pytorch github code repo

Usage

Step-1: Set your environment

virtualenv -p python3 --no-site-packages .capsule_env

source .capsule_env/bin/activate
pip3 install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp35-cp35m-manylinux1_x86_64.whl 
pip3 install torchvision

Step-2: Run

CUDA_VISIBLE_DEVICES=2 python main.py

Todo

  1. Test for cifar10
  2. Re-Implement EM-Routing

Other Implementations

About

Implemention of CapsNet from the paper Dynamic Routing Between Capsules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages