1. Learn
  2. /
  3. Courses
  4. /
  5. Parallel Programming with Dask in Python

Exercise

Loading and processing photos

Let's say you are training a machine learning model to read American sign language images and translate them into text. The first part of this is loading images, and you have a lot of them. Thankfully, Dask can help you load and process these images lazily.

Instructions

100 XP
  • Import the image subpackage inside dask.array.
  • Load all of the .jpeg images inside the directory data/asl.
  • Slice out the zeroth image from the array and use the .compute() method to load it into memory.