Skip to main content
Open In Colab

title: Visualizing What ConvNets Learn description: Four techniques for understanding what convolutional neural networks learn, intermediate activations, filter visualization, Grad-CAM, and occlusion sensitivity using PyTorch and ResNet-50.

Convolutional neural networks are often called “black boxes”, but there are principled techniques to inspect what they have learned. This section demonstrates four complementary interpretability methods using a pretrained ResNet-50 on ImageNet. All four methods use PyTorch hooks, no model modification required.
Output from cell 2
Output from cell 3
Output from cell 4
Output from cell 5
Output from cell 6

PyTorch reference


Found an error on this page? Report an issue.