Skip to main content
HomeCode-alongsPython

Sloth or Pastry? Using PyTorch and Deep Learning for Image Classification

In this session, using DataCamp Workspace we'll learn all about loading custom datasets into PyTorch and using transfer learning to perform an image processing task using a mostly-pretrained model, which we'll fine-tune.
Jun 2023
Code along with us onCode Along

In the age of deep learning, data scientists and machine learning engineers seldom create and train neural networks from scratch. A big chunk of what goes into performing a machine learning task, however, is collecting, preparing, and loading data to feed into a model. 

In this session, using DataLab we'll learn all about loading custom datasets into PyTorch and using transfer learning to perform an image processing task using a mostly-pretrained model, which we'll fine-tune.

We'll be using computer vision to answer the internet-popular question: is it a sloth or a pain au chocolat? This is a binary image classification task. 

Key takeaways

  • Machine learning engineers seldom train models from scratch
  • Learning to load data is an important building block for deep learning in PyTorch
  • Models trained on billions of images are available at our disposal for transfer learning
Topics
Related
Introducing datalab

blog

Introducing DataLab

DataCamp is launching DataLab, an AI-enabled data notebook to make it easier and faster than ever before to go from data to insight. Read on to learn more about what makes DataLab unique and our path towards it.
Filip Schouwenaars's photo

Filip Schouwenaars

3 min

tutorial

How to Convert a List to a String in Python

Learn how to convert a list to a string in Python in this quick tutorial.
Adel Nehme's photo

Adel Nehme

tutorial

A Comprehensive Tutorial on Optical Character Recognition (OCR) in Python With Pytesseract

Master the fundamentals of optical character recognition in OCR with PyTesseract and OpenCV.
Bex Tuychiev's photo

Bex Tuychiev

11 min

tutorial

Encapsulation in Python Object-Oriented Programming: A Comprehensive Guide

Learn the fundamentals of implementing encapsulation in Python object-oriented programming.
Bex Tuychiev's photo

Bex Tuychiev

11 min

tutorial

Python KeyError Exceptions and How to Fix Them

Learn key techniques such as exception handling and error prevention to handle the KeyError exception in Python effectively.
Javier Canales Luna's photo

Javier Canales Luna

6 min

code-along

Full Stack Data Engineering with Python

In this session, you'll see a full data workflow using some LIGO gravitational wave data (no physics knowledge required). You'll see how to work with HDF5 files, clean and analyze time series data, and visualize the results.
Blenda Guedes's photo

Blenda Guedes

See MoreSee More