Skip to content
StackDecode
AI & ML Atlas
Deep LearningarchitectureInteractive simulation

VGGNet

A very simple deep CNN built from stacks of 3×3 convolutions.

The idea

VGG showed that depth matters: repeat 3×3 convolutions (two 3×3 layers see the same area as one 5×5 with fewer weights) followed by 2×2 max pooling, doubling the channels after each block, and finish with large fully connected layers. VGG-16 has 16 weight layers and about 138 million parameters.

Watch it run

This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.

Plain deep networkWith skip connections (ResNet)out12345678910111213141516171819in
  • plain
  • with skip connections

The learning signal (gradient) starts at the output and travels backwards through 20 layers. Bar height shows its size at each layer on a log scale.

layers back:
0
1/7

A residual block computes x + F(x). The "+ x" is a shortcut the gradient can travel along.

Step by step

  1. 1Stack two or three 3×3 convolutions.
  2. 2Downsample with 2×2 max pooling.
  3. 3Double the channel count in the next block.
  4. 4End with three fully connected layers and softmax.

Where it is used

A common transfer-learning backbone and the basis of style transfer.

Watch out for

Huge number of parameters, mostly in the fully connected layers.

Related