File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
labml_nn/capsule_networks Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 2
2
---
3
3
title: Capsule Networks
4
4
summary: >
5
- PyTorch implementation/ tutorial of Capsule Networks.
5
+ PyTorch implementation and tutorial of Capsule Networks.
6
6
Capsule networks is neural network architecture that embeds features
7
7
as capsules and routes them with a voting mechanism to next layer of capsules.
8
8
---
9
9
10
10
# Capsule Networks
11
11
12
- This is an implementation of [Dynamic Routing Between Capsules](https://arxiv.org/abs/1710.09829).
12
+ This is a PyTorch implementation and tutorial of [Dynamic Routing Between Capsules](https://arxiv.org/abs/1710.09829).
13
13
14
- Capsule networks is neural network architecture that embeds features as capsules and routes them
15
- with a voting mechanism to next layer of capsules.
14
+ Capsule networks is neural network architecture that embeds features
15
+ as capsules and routes them with a voting mechanism to next layer of capsules.
16
16
17
17
Unlike in other implementations of models, we've included a sample, because
18
18
it is difficult to understand some of the concepts with just the modules.
Original file line number Diff line number Diff line change 6
6
7
7
# Classify MNIST digits with Capsule Networks
8
8
9
+ This is an annotated PyTorch code to classify MNIST digits with PyTorch.
10
+
9
11
This paper implements the experiment described in paper
10
12
[Dynamic Routing Between Capsules](https://arxiv.org/abs/1710.09829).
11
13
"""
@@ -161,11 +163,13 @@ def main():
161
163
"""
162
164
Run the experiment
163
165
"""
164
- conf = Configs ()
165
166
experiment .create (name = 'capsule_network_mnist' )
167
+ conf = Configs ()
166
168
experiment .configs (conf , {'optimizer.optimizer' : 'Adam' ,
167
- 'optimizer.learning_rate' : 1e-3 ,
168
- 'device.cuda_device' : 1 })
169
+ 'optimizer.learning_rate' : 1e-3 })
170
+
171
+ experiment .add_pytorch_models ({'model' : conf .model })
172
+
169
173
with experiment .start ():
170
174
conf .run ()
171
175
You can’t perform that action at this time.
0 commit comments