View example on GitHub

1. Introduction

This blog post is a tutorial on using data generators with Keras on Google Colab. Data generators allow you to feed data into Keras in real-time while training the model. This way, you can make modifications to the data before feeding it to the neural network or even load it from the secondary memory. Data generators have two use cases — (1) Data augmentation and (2) loading a dataset that does not fit into the RAM.

There are many posts out there that explain the use of data generators. Most of them explain in the context…

Satvik Venkatesh

Satvik is pursuing a PhD in audio segmentation. His research interests include Deep Learning, Brain-Computer Interfaces, and Unconventional Computing for music

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store