- tensorflow >= 1.4 (Probably 1.3 should work, too, though I didn't test it)
- numpy
- pillow
- scipy
I tried to implement the idea in Dynamic Routing Between Capsules
config.py
includes all hyper parameters that are needed.utils.py
contains functions regarding loading and saving.model.py
has all building blocks for capsNet and whole model implementation.train.py
is for training.eval.py
is for evaluation.
$ python train.py
$ python eval.py
Epoch | 10 |
---|---|
Test Acc. | 99.278 |