For this chapter, we will use a small subset of images from the labeled faces in the wild dataset. Specifically, we will use images of former United States president George W. Bush, since this is the image object that occurs most often in the dataset. Using the following code, we will bring in the image data and convert it to a format that can be inputted into our model. We start by loading the libraries and data files required.
Preparing and preprocessing a dataset
Loading the libraries and data files
We will begin by using the following steps:
- First, we load all the libraries that we will use. We will use just one function from each of these libraries but we need each one to get our data in the proper format. The jpeg library...