项目文件夹

文件
Giuseppe Futia 6c3dba867a [Tutorial] Update prerequisites of README (#380)
* Update prerequisites of README

* dependencies for pytorch models

* dependencies for mxnet models

* minor
2019-02-11 22:58:17 -05:00
..

DGL implementation of Capsule Network

This repo implements Hinton and his team's Capsule Network. Only margin loss is implemented, for simplicity to understand the DGL.

Dependencies

  • PyTorch 0.4.1+
  • torchvision
pip install torch torchvision

Training & Evaluation

# Run with default config
python main.py
# Run with train and test batch size 128, and for 50 epochs
python main.py --batch-size 128 --test-batch-size 128 --epochs 50