TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial…

Follow publication

Member-only story

Augmenting Images for Deep Learning

Conor O'Sullivan
TDS Archive
Published in
12 min readNov 17, 2022

--

Examples of image augmentations
(source: author)

Data collection can be time-consuming, expensive and, honestly, boring. When our ability to collect data is limited, data augmentation can play an important role. It can help us to build a more robust dataset, reduce overfitting and increase the amount of training data.

We will discuss data augmentation and its benefits. We will also keep things practical. That is by walking through Python code used to augment images. Specifically, we will discuss how to do these augmentations:

  • Flipping images
  • Adjusting brightness
  • Random colour jitter
  • Random noise (Gaussian, salt and pepper, and deletion)

To end, we will discuss best practices when it comes to augmenting images. Specifically, how to best validate our model and test it in production. You can also watch the video below for an introduction to the topic:

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Conor O'Sullivan
Conor O'Sullivan

Written by Conor O'Sullivan

PhD Student | Writer | Houseplant Addict | Follow me for articles on IML, XAI, Algorithm Fairness and Remote Sensing

No responses yet

Write a response