Complete for freeAdvanced

Course 20

Deep Learning and Computer Vision

You'll work in Google Colab, where PyTorch, torchvision, and scikit-learn come preinstalled and a free NVIDIA T4 GPU is one menu choice away. The first half builds the mechanics from the ground up on scikit-learn's 8×8 handwritten digits: tensor shapes traced layer by layer with a tracer you write yourself, gradients derived by hand and confirmed with autograd and finite differences, and a complete training loop with validation curves, best checkpoints, early stopping, and a learning-rate range test. The second half moves to real images: convolutional networks and augmentation, fine-tuning pretrained torchvision models, comparing classification with detection and segmentation outputs, tracking experiments and GPU use, and evaluating errors honestly. Each module has a Notes lesson, a Build-along, and a Practice lesson with worked solutions, and every output and chart on the page came from running the code shown. The course ends with a capstone: a documented computer-vision model study with its metrics, resource use, errors, and responsible-use limits.

Free completion promise: Every lesson runs in Google Colab's free tier and uses only free, open-source libraries and datasets. Modules 1 to 4 run comfortably on a CPU, so if Colab's free GPU allowance runs out you can keep working on the CPU runtime and come back to the GPU later.

What's inside

  • 24hand-written lessons
  • 24videos
  • 4step-through animations
  • 47diagrams, charts & live previews
  • 49quiz questions
  • 193code examples

Before you begin

Requirements & setup for Deep Learning and Computer Vision

Start with the complete free pathway below. Hardware, subscriptions, paid APIs, and cloud credits are never required.

Start here · free path

Your complete $0 setup

Every lesson runs in Google Colab's free tier and uses only free, open-source libraries and datasets. Modules 1 to 4 run comfortably on a CPU, so if Colab's free GPU allowance runs out you can keep working on the CPU runtime and come back to the GPU later.

$0 required

Setup checklist

0 of 6 complete

This checklist is a temporary setup aid and resets when the page reloads. Saved course progress begins in the setup lessons below.

  1. Everything required for this course is free. Paid software, APIs, cloud credits, GPUs, and physical equipment are optional.

    About 2 min
  2. Go to colab.research.google.com, sign in with a Google account, and create a notebook with File › New notebook in Drive.

  3. Open Runtime › Change runtime type, choose T4 GPU under Hardware accelerator, and click Save.

    About 5 min
  4. In a code cell, run: import torch; print(torch.__version__, torch.cuda.is_available())

    About 5 min
  5. In another cell, run !nvidia-smi to see the GPU's name and memory.

    About 5 min
  6. Google Colab with PyTorch (free GPU): The first cell prints a PyTorch version followed by True, and nvidia-smi lists a Tesla T4 with about 15 GB of memory. On a CPU runtime the first cell prints False, which is fine for Modules 1 to 4.

    About 5 min

Software

1 item

Google Colab with PyTorch (free GPU)

Colab is Google's free, browser-based notebook service. Code runs on a Google virtual machine with PyTorch and torchvision already installed, and the free tier can attach an NVIDIA T4 GPU, so the course needs no installs and no graphics card of your own.

Course need
Google Colab with PyTorch (free GPU)
Free

Colab is Google's free, browser-based notebook service. Code runs on a Google virtual machine with PyTorch and torchvision already installed, and the free tier can attach an NVIDIA T4 GPU, so the course needs no installs and no graphics card of your own. Every lesson is readable text with copyable code, keyboard-friendly quizzes and step-throughs, and videos with YouTube captions.

  1. Go to colab.research.google.com, sign in with a Google account, and create a notebook with File › New notebook in Drive.
  2. Open Runtime › Change runtime type, choose T4 GPU under Hardware accelerator, and click Save.
  3. In a code cell, run: import torch; print(torch.__version__, torch.cuda.is_available())
  4. In another cell, run !nvidia-smi to see the GPU's name and memory.

Hardware

Nothing required

No physical hardware is needed for this course.

Accounts

Nothing required

No external account is needed for this course.

What you will be able to do

Learning outcomes

  • Trace tensor shapes, dtypes, and devices through layers and activations, and fix shape, dtype, and device errors from the message alone.
  • Derive gradients for small models by hand, verify them with autograd and finite differences, and choose a loss and learning rate with evidence.
  • Write training loops that log honest training and validation curves, keep the best checkpoint, and diagnose overfitting and learning-rate problems.
  • Design and evaluate convolutional network, augmentation, and transfer-learning experiments in PyTorch and torchvision.
  • Compare classification, detection, and segmentation outputs, and document resource use, errors, limitations, and responsible-use constraints.

Build real work

Assignments & capstone

Free tools accepted

Network tracer and hand-checked gradients

In Colab with PyTorch, trace a batch through a small network shape by shape with forward hooks and flag saturated layers, then derive a neuron's gradient by hand, check it with autograd and finite differences, and sweep the learning rate.

Every lesson runs in Google Colab's free tier and uses only free, open-source libraries and datasets. Modules 1 to 4 run comfortably on a CPU, so if Colab's free GPU allowance runs out you can keep working on the CPU runtime and come back to the GPU later. Submit your project file, or screenshots with descriptions, or a short demo.

Training loop and fine-tuning study

Write a PyTorch training loop with a three-way split, per-epoch train and validation logging, and a best checkpoint, then fine-tune a pretrained ResNet-18 in two phases and compare it with training from scratch, smoke-testing on CPU first.

Every lesson runs in Google Colab's free tier and uses only free, open-source libraries and datasets. Modules 1 to 4 run comfortably on a CPU, so if Colab's free GPU allowance runs out you can keep working on the CPU runtime and come back to the GPU later. Submit your project file, or screenshots with descriptions, or a short demo.

Final assessment

Responsible vision model study

Train and evaluate a vision model in Colab with PyTorch, such as a digit reader under blur or a fine-tuned flower classifier, with a datasheet, a logged baseline, seeded experiments, per-class and subgroup results with intervals, and a failure gallery. Deliverables: Notebook that reruns top to bottom, Experiment log with 3+ runs, including a baseline, Datasheet for the dataset, One- to two-page model card, and Five-minute presentation.

Prerequisites & pacing

Skills assumed

  • Confident Python: functions, classes, loops, lists, and dictionaries
  • Classical machine learning with scikit-learn: train/test splits, overfitting, and accuracy
  • High school algebra; derivatives help, and Module 3 reviews the chain rule as it goes
  • A Google account that can open Google Colab

Recommended prior courses

These are advisory, not locks. If you already have the skills listed above, enroll directly.

Choose your pace

  • self paced: 12 weeks at 6 hours per week
  • weekly: 12 weeks at 6 hours per week

Part of this learning path

Course created by Zafir Shamsi.