Module 11: Computer Vision
Learn Convolutional Neural Networks (CNNs) for image classification, then use transfer learning. Object detection, segmentation, and generative vision are survey topics unless you choose a deeper project.
What You'll Learn
- Introduction to Computer Vision and Visual Cortex
- Images, Pixels, and Color Models (RGB, Grayscale)
- Convolution Operations and Edge Detection
- Convolutional Neural Networks (CNNs)
- CNN architecture survey (LeNet, AlexNet, VGGNet, ResNet ideas)
- ImageNet and Large-Scale Recognition
- Transfer Learning and Fine-tuning (primary practice path)
- Data Augmentation Techniques
- Object Detection survey (R-CNN family to YOLO ideas)
- Semantic and Instance Segmentation (overview)
- GANs and diffusion for image generation (overview)
- Recent directions (Vision Transformers, CLIP)
- Practice image classification projects
CNN and RNN curriculum map (CNN track)
| Topic | Where to study |
|---|---|
| CNN foundation, architectures, math | Computer vision guide |
| Activations (Sigmoid, tanh, ReLU, Leaky ReLU, ELU, SELU) | Activation functions |
| CNN in PyTorch; augmentation; pretrained models | Frameworks PyTorch CV, Augmentation, Transfer learning |
| RNN / Transformer NLP | NLP module |
Topics Covered
1. Fundamentals
- Introduction to Computer Vision: Overview, applications, human visual system
- Images and Pixels: Digital images, RGB, Grayscale, color models
- Convolution Basics: Convolution operations, edge detection (Sobel, Canny, Prewitt)
- Spatial Arrangement: Padding, strides, spatial dimensions
2. Convolutional Neural Networks (CNNs)
- Convolutional Layers: Building blocks, feature detection
- Pooling Mechanisms: Max pooling, average pooling
- Working with RGB Images: Multi-channel convolutions
- Training Optimization: Batch normalization, dropout, callbacks
3. CNN Architectures (survey + small builds)
- LeNet (1998): Early CNN for digit recognition (good first build)
- AlexNet (2012): ImageNet breakthrough ideas
- VGGNet (2014): Deep stacks of small filters
- ResNet (2015): Residual / skip connections (understand and use pretrained, not required to train ImageNet ResNet from scratch)
- ImageNet: Large-scale recognition challenges and impact
4. Transfer Learning
- Pre-trained Models: Leveraging ImageNet-trained models
- Fine-tuning: Adapting to specific tasks
- Feature Extraction: Using CNNs as feature extractors
- When to use: Limited data, faster training, better performance
5. Data Augmentation
- Why Augment: Increasing dataset size and diversity
- Techniques: Rotation, flipping, scaling, color jitter, cropping
- Implementation: Keras ImageDataGenerator, Albumentations
- Best Practices: Realistic augmentations, avoiding over-augmentation
6. Object Detection (survey)
- Evolution: From R-CNN to YOLO (read and compare ideas)
- R-CNN Family: R-CNN, Fast R-CNN, Faster R-CNN
- YOLO: You Only Look Once for real-time detection (optional project, not a default build-from-scratch outcome)
- Applications: Face detection, autonomous vehicles, surveillance
7. Segmentation (overview)
- Semantic Segmentation: Pixel-level classification
- Instance Segmentation: Distinguishing individual objects
- Mask R-CNN: Segmentation architecture to know by name and idea
- Applications: Medical imaging, autonomous vehicles
8. Advanced Topics (overview)
- GANs: Generative Adversarial Networks for image synthesis
- Diffusion Models: Diffusion process for image generation
- Stable Diffusion: Latent diffusion with Hugging Face integration (try when ready)
- VAEs: Variational Autoencoders for image generation
- Vision Transformers: Transformer architecture for vision
- Recent directions: CLIP, DALL-E, Stable Diffusion
- Emerging Technologies: Future directions in computer vision
Learning Objectives
By the end of this module, you should be able to:
- Explain computer vision fundamentals (images, pixels, convolution)
- Build a small CNN for classification and explain classic architecture ideas (LeNet-scale build, ResNet as transfer/pretrained)
- Apply basic edge detection and image processing techniques
- Apply transfer learning on a classification task
- Augment image data to improve generalization
- Summarize object detection ideas (R-CNN family, YOLO) without claiming a full YOLO train from scratch
- Describe semantic vs instance segmentation at a survey level
- Outline GANs / diffusion / ViT directions you might study next
Projects
- MNIST with CNN: Improve digit recognition
- CIFAR-10 Classification: Classify natural images
- Cat vs Dog Classifier: Binary image classification
- Transfer Learning Project: Use pre-trained models
- Custom Image Classifier: Your own dataset
Key Concepts
- Convolution: Detect local patterns
- Pooling: Reduce spatial dimensions
- Receptive Field: Area of input each neuron sees
- Feature Maps: Outputs of convolution layers
- Transfer Learning: Leverage pre-trained knowledge
Documentation & Learning Resources
Official Documentation:
Free Courses:
- CS231n - Stanford: Best CV course, completely free
- CS231n YouTube Lectures: Full course videos
- Computer Vision (Coursera): Free audit available
- Fast.ai Computer Vision: Free practical course
Tutorials:
- CNN Tutorial (TensorFlow)
- Transfer Learning Tutorial
- Image Classification Guide
- Object Detection Tutorial
Video Tutorials:
Practice:
Additional Resources:
- Advanced Topics: Advanced architectures, object detection, optimization
- Project Tutorial: Step-by-step CIFAR-10 classification project
- Quick Reference: Quick lookup guide for computer vision
Previous Module: 10-deep-learning-frameworks
Next Module: 12-natural-language-processing