Computer Vision with Deep Learning / Start Here

How this course works

Lesson 1 of 36. Open to read. No account needed.

What This Course Is For

Deep learning changed computer vision because a network trained on millions of images learns features that transfer: edges, textures and object parts that help with a new task even when you have only a few thousand pictures. This course teaches you to use that fact well. You take pretrained networks from torchvision, PyTorch's vision library, and adapt them to three tasks: classification (what is in this image), object detection (where are the objects, with a box around each) and segmentation (which pixels belong to which class).

Each task has its own data format, its own model interface and its own way of being measured, and most mistakes in practice live in those details: a box in the wrong format, preprocessing that differs between training and prediction, a test score inflated by near-duplicate images, a metric that looks excellent because the background dominates. The course spends as much time on those details as on the models, and every lesson ends with something you run and check yourself.

Who It Is For

You should already be able to train a small network in PyTorch: build an nn.Module, feed it batches from a DataLoader, write a training loop with a loss and an optimiser, switch between model.train() and model.eval(), and save a state_dict. You should know what a convolution and a pooling layer do to a tensor's shape. The Deep Learning with PyTorch course teaches all of this; this course starts where it stops and does not re-teach it.

You do not need previous computer vision experience, OpenCV, image processing theory, calculus or a GPU. The arithmetic the metrics need, areas of rectangles and ratios of areas, is worked through in the lessons.

How the Lessons Build on Each Other

The course path: Start Here, Images as Data, Annotations, Pretrained Networks, Transfer Learning, Architectures, Object Detection, Segmentation, Inspect and Explain, Robustness and Data Quality, Reuse on a CPU, then the Final Challenge. Each arrow means the next module uses what the previous one taught; Deep Learning with PyTorch comes before all of them.

Read the diagram from top to bottom. Images and their annotations come first, because every later model consumes them, and a wrong box format or a leaked duplicate spoils everything downstream. Pretrained networks come next, then transfer learning, which is the core skill of the course: adapting a network trained on one dataset to another. The architecture module compares the networks you have been using, so it can use your transfer-learning results as its measure of accuracy. Detection and segmentation then apply the same ideas to boxes and pixels. Inspection and robustness ask whether a model is right for the right reasons, and the reuse module saves a model so that another program can use it. The final challenge combines the core skills without step-by-step instructions.

Three Ways to Study a Lesson

Every lesson has three views of the same material:

  • Full Course teaches the topic: the problem, how it works, a worked example with the code explained and an exercise you do yourself.
  • Revision helps you recall the reasoning after you have studied the Full Course: the distinctions, the decisions and the common mistakes.
  • Quick Reference lists the code patterns and decisions in a compact form, with the warnings that apply to them.

Start with Full Course. The shorter views are for returning to a topic, not for skipping it.

How the Practice Works

The setup lesson creates a practice folder called cv-practice in your home folder, with one Python environment holding the exact library versions the lessons were checked against, a weights folder where pretrained networks are stored after their first download, and a data folder for the one public dataset the course uses; both appear when a lesson first downloads into them. Each lesson then gets its own subfolder.

Everything runs on an ordinary computer's processor; no graphics card is used or needed. Training on a CPU is slower, so every exercise is designed to finish in under five minutes on a 4-core laptop, and most in under two. The lessons keep images small and freeze the parts of a network that do not need to change, and they tell you how long each run took when it was tested.

The images come from two places. The course's own scripts generate scenes of simple shapes with exact boxes and masks, so that every learner gets the same data. Real photographs come from EuroSAT, a public collection of satellite images of land use released under the MIT licence. No image in the course shows a person. Nothing you make is uploaded anywhere.

Output shown in the lessons is marked illustrative where it varies between computers: timings, folder paths and the last digits of some results. Each lesson says which values to compare. Each exercise says how to start again if something goes wrong, and ends with a cleanup step that removes only its own subfolder. The final challenge explains how to remove the whole practice folder when you have finished.

Checking Your Own Work

Each exercise says how to check the result: comparing printed values with the lesson's, an assertion in a script, a saved image you inspect, and in two lessons supplied tests. A script that finishes without an error is not enough. The check is whether its results are right, and whether you can say why.

Questions have a Your answer box. Write your answer before opening the reasoning; comparing afterwards shows what you actually understood. There is no automatic grading, and marking a lesson complete records your reading progress, not a proven ability.

What the Course Leaves Out

Generative models, video, 3D vision, optical character recognition, and any task about people, such as face recognition or pose estimation, are outside the course, as are vision-language models, other libraries such as Hugging Face or OpenCV, and deploying models to servers or phones. Where a lesson touches one of these, it names it once as a direction for further study.

torchvision's documentation is the authority the lessons cite, together with the original paper behind each method. The lessons tell you which page to open when you want more than the course gives.

Readiness Check

Read this network and predict the three shapes it prints, before reading on:

import torch
from torch import nn

model = nn.Sequential(
    nn.Conv2d(3, 16, kernel_size=3, padding=1),
    nn.ReLU(),
    nn.MaxPool2d(2),
    nn.Conv2d(16, 32, kernel_size=3, stride=2, padding=1),
    nn.ReLU(),
    nn.AdaptiveAvgPool2d(1),
    nn.Flatten(),
    nn.Linear(32, 10),
)
x = torch.rand(8, 3, 64, 64)
print(model[:3](x).shape)
print(model[:4](x).shape)
print(model(x).shape)

Then find the bug in this evaluation function, used on a model that contains dropout:

def accuracy(model, batches):
    correct = total = 0
    with torch.no_grad():
        for images, labels in batches:
            correct += (model(images).argmax(1) == labels).sum().item()
            total += len(labels)
    return correct / total

If both are easy, start the setup lesson. If not, the convolutional networks and training-loop modules of Deep Learning with PyTorch teach them.

Check Your Understanding

  1. The three printed shapes of the readiness network.
  2. What the evaluation function forgets, and what you would see if you called it three times on the same batch.

Answer and Reasoning

Understanding check

  1. torch.Size([8, 16, 32, 32]), then torch.Size([8, 32, 16, 16]), then torch.Size([8, 10]). The first convolution keeps 64 by 64 because a 3-by-3 kernel with padding 1 adds a pixel on each side; it changes the channels to 16. The pooling halves the size to 32. The second convolution has stride 2, so it halves the size again to 16, with 32 channels. Adaptive average pooling reduces each channel to one number whatever the size, Flatten makes 32 features, and the linear layer maps them to ten scores. model[:3] is the first three layers, so it stops after the pooling.
  2. It never calls model.eval(). torch.no_grad() only stops gradients being recorded; it does not change how layers behave. In training mode dropout keeps zeroing random activations, so the same batch gives different predictions on each call: in a test of this function, three calls on one batch of 64 gave 0.328, 0.359 and 0.531, and after model.eval() all three gave 0.359. Batch normalisation has the same problem in a different way: in training mode it uses the current batch's statistics instead of the ones learned during training.

References

31 more lessons in the full course

Course access opens every lesson and adds revision notes, the Quick Reference, saved progress, bookmarks and your own notes.

INR 199 plus 18% GST. 90 days of online access. No auto-renewal.

Get the full course

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy