README.md 572 Bytes
Newer Older
VoVAllen's avatar
VoVAllen committed
1
2
3
4
5
6
DGL implementation of Capsule Network
=====================================

This repo implements Hinton and his team's [Capsule Network](https://arxiv.org/abs/1710.09829).
Only margin loss is implemented, for simplicity to understand the DGL.

7
8
9
10
11
12
13
14
15
16
17
Dependencies
--------------
* PyTorch 0.4.1+
* torchvision

```bash
pip install torch torchvision
```

Training & Evaluation
----------------------
VoVAllen's avatar
VoVAllen committed
18
19
20
21
22
```bash
# 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
23
```