Phase 3 - Computer Vision with CNNs
Why images need a different network
A plain DenseDense layer for a 100 × 100 pixel image would need to connect every
neuron to all 10,000 pixels — millions of weights before you’ve even reached
the second layer. Images also have structure a DenseDense layer throws away:
nearby pixels are related, and the same pattern (an edge, an eye, a wheel)
can appear anywhere in the frame. Convolutional neural networks (CNNs)
were built specifically to exploit that structure, using small filters that
slide across the image and share their weights everywhere they go.
In this phase, you’ll learn:
- how convolutional layers use filters (kernels) to build feature maps instead of connecting to every pixel
- how pooling layers shrink feature maps and add a little translation invariance
- the classic CNN stack, and the memory/parameter trade-offs behind it
- the landmark architectures that shaped the field — LeNet-5, AlexNet, GoogLeNet, VGGNet, ResNet, and Xception
- how to reuse a Keras pretrained model instead of training from scratch
- how data augmentation manufactures believable new training images to fight overfitting on small datasets
- semantic segmentation — classifying every pixel of an image, not just the image as a whole
- how to peek inside a trained convnet with activation visualizations, filter visualizations, and Grad-CAM heatmaps
- object detection — predicting bounding boxes as a regression problem, grading them with IoU, and cleaning up duplicates with non-max suppression, the way YOLO does in real time
Phase 3 flow
flowchart TD A["Convolution & Feature Maps
(filters, kernels)"] --> B["Pooling & CNN Architecture
(max/avg pooling, the conv stack)"] B --> C["Famous Architectures
(LeNet-5 -> AlexNet -> GoogLeNet -> ResNet)"] C --> D["Transfer Learning
(pretrained Keras models)"] D --> E["Data Augmentation
(fighting overfitting on small datasets)"] E --> F["Image Segmentation
(per-pixel classification)"] F --> G["Interpreting Convnets
(activations, filters, Grad-CAM)"] G --> H["Object Detection
(bounding boxes, IoU, YOLO, NMS)"]
How the pieces fit together
Every modern vision model is still, at heart, a stack of the same two
building blocks: convolutional layers that detect patterns and pooling
layers that shrink the image while keeping what matters. Once you
understand that stack, the “famous architectures” are just different ways of
arranging it — LeNet-5 stacked it modestly, AlexNet made it deeper and added
ReLU, GoogLeNet made it wider with inception modules, and ResNet made it
very deep by adding skip connections so gradients could flow all the way
back. Rather than retraining one of these giants yourself, keras.applicationskeras.applications
lets you download the pretrained weights directly — which is exactly how the
Image Segmentation page’s encoder-decoder model, and the Grad-CAM
interpretability page’s Xception model, get their vision “backbone.”
Once the classics are behind you, the phase moves into the techniques that make CNNs practical to train and trust on real, small, messy datasets: data augmentation for when you don’t have millions of images, image segmentation for when you need a per-pixel answer instead of a single label, and Grad-CAM for when you need to know why your model made a prediction, not just what it predicted. The phase closes with object detection, which pulls several earlier ideas together at once — a classifier-and-localizer trained as a regression problem, an FCN’s dense-to-convolutional trick for running it efficiently across a whole image, and IoU-based non-max suppression for cleaning up the result — exactly the recipe behind YOLO.
If this helped you, consider buying me a coffee ☕
Buy me a coffeeWas this page helpful?
Let us know how we did
