Deep learning visualizer
CNN Feature Map Explorer
Explore how convolutional layers transform an image into learned visual features.
ModelSimple CNNLayerConv2Channels16Map14 x 14
Input image
Digit 7
Input
28 x 28
28 x 28
Feature Maps: Conv2
Channel 6 / 16HighLow
Input
28 x 28
Selected Filter (Conv2, Ch 6)
-0.7-0.1-0.64-0.020.590.04-0.150.45-0.09
3 x 3Channel 6 Activation (14 x 14)
Position [9, 8]Activation 2.04Receptive field 5 x 5
Features become more abstract with depth
Input
Pixels
Early layer
Edges
Middle layer
Patterns
Deeper layer
Shapes
How feature maps work
- Convolutional filters slide across the input and compute dot products.
- Each filter responds strongly to specific patterns at different locations.
- The response values form a feature map highlighting where patterns occur.
- Deeper layers combine simpler patterns into more complex representations.
import torch.nn as nnmodel = SimpleCNN()activations = {}def get_activation(name):def hook(model, input, output):activations[name] = output.detach().cpu()return hookmodel.conv2.register_forward_hook(get_activation('conv2'))