
Dataset Source and Attribution
This course uses the Rock Paper Scissors dataset made available on Kaggle by S. Kamal. The original dataset was created by Laurence Moroney and is available from his dataset page.
The original images are licensed under the Creative Commons Attribution 2.0 license, which permits sharing and adaptation, including commercial use, with appropriate attribution. The files may be organized into training, validation, and test folders for the course workflow, but the original images are not modified unless otherwise noted.
Credit: Laurence Moroney, laurencemoroney.com. This course is not affiliated with or endorsed by Laurence Moroney, Kaggle, or the Kaggle dataset uploader.
Dataset Source and Attribution
This course uses the Intel Image Classification dataset, made available on Kaggle by Puneet6060 and originally published for an Intel image classification challenge hosted by Analytics Vidhya.
Kaggle identifies the data files as copyrighted by their original authors. The dataset files are not redistributed with this course. Students download them directly from the Kaggle listing and should follow the terms provided there.
A limited number of sample images are displayed only when needed for educational demonstration, model evaluation, and error analysis. This course is not affiliated with or endorsed by Intel, Analytics Vidhya, Kaggle, or the dataset uploader.
Take a photo of your hand showing “scissors.” Can an image classifier trained on someone else’s hand recognize yours?
In your first project, you’ll run a Rock, Paper, Scissors classifier in PyTorch and see what it predicts. By the final project, you’ll be able to build two classifiers yourself, test them on new images, and explain which one you’d choose and why.
This course is for Python users who want hands-on experience with computer vision and deep learning. You’ll work in Jupyter notebooks, starting with a guided example and gradually taking over the code and the decisions.
Build an image classifier from scratch
How does a neural network learn from a wrong prediction? We’ll work through a small example by hand, then connect each step to PyTorch. You’ll put those ideas to work on the Intel Image Classification dataset, training a convolutional neural network (CNN) to recognize six kinds of scenes: buildings, forests, glaciers, mountains, seas, and streets.
You’ll prepare the images, create training, validation, and test sets, build your CNN, and write the training loop. Then you’ll try it on a photo of your own.
Figure out what to improve next
Suppose your model keeps getting better on its training images, but its validation accuracy stops improving. What would you try next? Using the same scene-classification project, you’ll learn to:
Read learning curves to spot signs of overfitting.
Use a confusion matrix and inspect misclassified photos to find out which categories give your model trouble.
Apply transfer learning with a pretrained ResNet-18, then fine-tune its final stage and compare the results with your own CNN.
Experiment with data augmentation, dropout, and weight decay to see what helps on images the model hasn’t seen.
Make the decisions in the final project
Return to Rock, Paper, Scissors and put your skills to the test. Build a baseline CNN, fine-tune a ResNet-18, and examine where each model succeeds or fails. Then try your own hand photos under different lighting or against a different background. Hints, a worked solution, and reference results are available so you can check your reasoning as well as your code.
What you’ll need
Basic Python is enough to get started. No previous experience with PyTorch or computer vision is required. You can work locally or use Google Colab.
Join me, Ackley Will, a computing professor at Andrews University, for more than eight hours of guided video, downloadable notebooks, and practical exercises. Lessons are taught in English, with Portuguese subtitles available.