Files
2023-07-27 13:15:48 +08:00
..
2023-02-19 08:35:15 +08:00
2022-09-26 21:47:11 +08:00
2022-09-26 21:47:11 +08:00
2019-05-23 10:38:05 +08:00
2023-02-19 22:50:07 +08: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
python3 main.py
# Run with train and test batch size 128, and for 50 epochs
python3 main.py --batch-size 128 --test-batch-size 128 --epochs 50