Skip to Content
Python Deep Learning - Second Edition
book

Python Deep Learning - Second Edition

by Ivan Vasilev, Daniel Slater, Gianmario Spacagna, Peter Roelants, Valentino Zocca
January 2019
Intermediate to advanced
386 pages
11h 13m
English
Packt Publishing
Content preview from Python Deep Learning - Second Edition

Structure of the capsule network

In this section, we'll describe the structure of the capsule network, which the authors used to classify the MNIST dataset. The input of the network is the 28 x 28 MNIST greyscale images and the following are the steps:

  1. We'll start with a single convolutional layer with 256 9 x 9 filters, stride 1, and ReLU activation. The shape of the output volume is (256, 20, 20).
  2. We have another convolutional layer with 256 9 x 9 filters and stride 2. The shape of the output volume is (256, 6, 6).
  3. Use the output of the layer as a foundation for the first capsule layer, called PrimaryCaps. Take the (256, 6, 6) output volume and split it in to 32 separate (8, 6, 6) blocks. That is, each of the 32 blocks contains eight 6 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Deep Learning

Python Deep Learning

Valentino Zocca, Gianmario Spacagna, Daniel Slater, Peter Roelants

Publisher Resources

ISBN: 9781789348460Supplemental Content